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 statuspull/63359/head
parent
35cc228b3b
commit
bfd32c9b00
@ -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
|
+ ansible-playbook -i inventory test.yml
|
||||||
++ set +x
|
++ set +x
|
||||||
fatal: [testhost]: FAILED! => {"changed": false, "msg": "no reason"}
|
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"}
|
fatal: [testhost]: FAILED! => {"changed": false, "msg": "Failed as requested from task"}
|
||||||
|
|||||||
Loading…
Reference in New Issue