Update playbooks_conditionals.rst (#80062)

"changed" was missing from the docs
pull/80122/head
Keeper-of-the-Keys 2 years ago committed by GitHub
parent 0521184337
commit cc8e6d06d0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -175,6 +175,10 @@ Ansible always registers something in a registered variable for every host, even
ansible.builtin.command: /bin/still/something_else
when: result is skipped
- name: Run only if the task that registered the "result" variable changed something.
ansible.builtin.command: /bin/still/something_else
when: result is changed
.. note:: Older versions of Ansible used ``success`` and ``fail``, but ``succeeded`` and ``failed`` use the correct tense. All of these options are now valid.

Loading…
Cancel
Save