You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When a playbook specifies any_errors_fatal and a task that only runs for certain hosts includes a ignore_errors statement, the skipped host doesn't run any tasks after the one with the ignore_errors statement.
- name: Kill all ejabberd related processes
shell: killall beam ejabberd epmd
ignore_errors: yes
the host sd-zt-steve-training-0 stops executing tasks. This is a very simplified excerpt from a much larger playbook which show the same behavior and skips lots of tasks. Removing either the any_errors_fatal or the when statement causes it to behave as expected.
Confirming this bug report and the simplified examples trigger the same issue we have found in a larger playbook. This is a blocker for us (https://github.com/blueboxgroup/ursula) to upgrade to Ansible v2.
We believe the above commit should resolve this problem for you. This will also be included in the next release.
If you continue seeing any problems related to this issue, or if you have any further questions, please let us know by stopping by one of the two mailing lists, as appropriate:
Because this project is very active, we're unlikely to see comments made on closed tickets, but the mailing list is a great way to ask questions, or post if you don't think this particular issue is resolved.
ISSUE TYPE
ANSIBLE VERSION
(specifically 2.0.2.0-rc4)
CONFIGURATION
OS / ENVIRONMENT
From: Fedora 23
Managing: Ubuntu Trusty (14.04)
SUMMARY
When a playbook specifies any_errors_fatal and a task that only runs for certain hosts includes a ignore_errors statement, the skipped host doesn't run any tasks after the one with the ignore_errors statement.
STEPS TO REPRODUCE
Using this inventory file
and this playbook
or this playbook
with this included task
the host sd-zt-steve-training-0 stops executing tasks. This is a very simplified excerpt from a much larger playbook which show the same behavior and skips lots of tasks. Removing either the any_errors_fatal or the when statement causes it to behave as expected.
EXPECTED RESULTS
ACTUAL RESULTS
The text was updated successfully, but these errors were encountered: