Closed ghost closed 6 years ago
Also hitting this but not using with_nested
.
Temporary work around with allow_duplicates: true
in meta/main.yml
https://docs.ansible.com/ansible/2.4/playbooks_reuse_roles.html#role-duplication-and-execution
@zaiyers @jmighion this seems to be fixed in the latest devel
, can you try if that fixes your issue? Thanks!
needs_info
can't reproduce with newest devel. seems fixed.
thanks! :)
ISSUE TYPE
COMPONENT NAME
plugins/strategy/free
ANSIBLE VERSION
CONFIGURATION
OS / ENVIRONMENT
N/A
SUMMARY
Tasks from the last include_tasks-call are not executed when using the free strategy and with_nested. This seems to only affect roles, I could not reproduce it using only tasks.
STEPS TO REPRODUCE
Run the playbook. $ ansible-playbook -i hosts site.yml Change include_tasks to include when using ansible 2.3
hosts:
site.yml:
roles/role-using-with_nested-to-include/tasks/main.yml:
roles/role-using-with_nested-to-include/tasks/first-include:
roles/role-using-with_nested-to-include/tasks/second-include:
roles/role-using-with_nested-to-include/tasks/third-include:
roles/role-using-with_nested-to-include/tasks/fourth-include:
EXPECTED RESULTS
Same results as when using the linear strategy, see the output below. All tasks have been executed.
ACTUAL RESULTS
Last task has been skipped.