Is that possible to run a handler if tasks is ignoring ?
If you have a tasks running a loop and one element int the loop is failing, notify is ignored.
I would like to execute the handler if at least one of my element changed.
- name: test handlers
ansible.builtin.command: ls “{{ item }}”
loop: - “/bin”
- “/wrongFolder”
ignore_errors: true
notify: Reboot serve
In this case, I will have a change on the item “bin” and a failed on “wrongFolder”, so, in that case, handler is not executed. Is that possible to change that and execute the handler if one item change ?
Thanks
user24718843 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.