ilri / rmg-ansible-public

Ansible playbooks for ILRI research-computing infrastructure
GNU General Public License v3.0
8 stars 2 forks source link

Force handlers to run #74

Closed alanorth closed 7 years ago

alanorth commented 7 years ago

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.