mirror of https://github.com/ansible/ansible.git
clean "changed" only after it has been processed (#59958)
* clean "changed" after it has been processed
without this change, a loop of `debug` tasks with `changed_when`
causes the "changed" status to get lost before output
* runme.sh tests for debug loop status
(cherry picked from commit bfd32c9b00)
pull/63422/head
parent
6046da759f
commit
b7fe3407c3
@ -0,0 +1,3 @@
|
||||
bugfixes:
|
||||
- debug - fixed an issue introduced in Ansible 2.4 where a loop of debug tasks
|
||||
would lose the "changed" status on each item.
|
||||
@ -1,4 +1,5 @@
|
||||
+ ansible-playbook -i inventory test.yml
|
||||
++ set +x
|
||||
fatal: [testhost]: FAILED! => {"changed": false, "msg": "no reason"}
|
||||
fatal: [testhost]: FAILED! => {"msg": "All items completed"}
|
||||
fatal: [testhost]: FAILED! => {"changed": false, "msg": "Failed as requested from task"}
|
||||
|
||||
Loading…
Reference in New Issue