Sometimes, when you are running some playbooks and there is an error due to a missing file or something minor, any tasks that had notified handlers don't get run. This happens most of the time when bringing up a new host, but even while running on "normal" hosts, and can leave the host in a weird state.
We can add this to the repository's ansible.cfg:
[defaults]
force_handlers=True
Read the error handling docs and let me know what you think. I've been using this for a few weeks and have appreciated it.
Sometimes, when you are running some playbooks and there is an error due to a missing file or something minor, any tasks that had notified handlers don't get run. This happens most of the time when bringing up a new host, but even while running on "normal" hosts, and can leave the host in a weird state.
We can add this to the repository's
ansible.cfg
:Read the error handling docs and let me know what you think. I've been using this for a few weeks and have appreciated it.