openstack-ansible/releasenotes/notes/ansible-force-handlers-1e00c9a88c29fe4f.yaml
Jesse Pretorius 227f24f07e Always force handler execution
When a task fails in a playbook, the default behaviour results
in notified handlers not running. This can result in a
configuration change being executed, but the service not being
restarted.

This patch changes the default behaviour to force the handlers
to run when a playbook fails for any reason except a host being
unreachable.

Change-Id: I8a16bb1a5c04345e962ab01225f3d972781d9ed7
Reference: http://docs.ansible.com/ansible/playbooks_error_handling.html#handlers-and-failure
2016-10-07 17:31:39 +00:00

9 lines
437 B
YAML

---
fixes:
- When a task fails while executing a playbook, the default behaviour for
Ansible is to fail for that host without executing any notifiers. This can
result in configuration changes being executed, but services not being
restarted. OpenStack-Ansible now sets ``ANSIBLE_FORCE_HANDLERS`` to
``True`` by default to ensure that all notified handlers attempt to
execute before stopping the playbook execution.