summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorKeeper-of-the-Keys <es.rosenberg+github@gmail.com>2023-03-02 21:17:50 +0200
committerGitHub <noreply@github.com>2023-03-02 14:17:50 -0500
commitcc8e6d06d00ee1655d89e97d8a447b46abf3ae25 (patch)
tree583fe57dd6e7bff2b2bf6529f4d76a560c26c734 /docs
parent0521184337d5c4f37c16f2493cc35fdac52d88cf (diff)
downloadansible-cc8e6d06d00ee1655d89e97d8a447b46abf3ae25.tar.gz
Update playbooks_conditionals.rst (#80062)
"changed" was missing from the docs
Diffstat (limited to 'docs')
-rw-r--r--docs/docsite/rst/playbook_guide/playbooks_conditionals.rst4
1 files changed, 4 insertions, 0 deletions
diff --git a/docs/docsite/rst/playbook_guide/playbooks_conditionals.rst b/docs/docsite/rst/playbook_guide/playbooks_conditionals.rst
index f920fd74b4..e1bf42d5cb 100644
--- a/docs/docsite/rst/playbook_guide/playbooks_conditionals.rst
+++ b/docs/docsite/rst/playbook_guide/playbooks_conditionals.rst
@@ -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.