From cc8e6d06d00ee1655d89e97d8a447b46abf3ae25 Mon Sep 17 00:00:00 2001 From: Keeper-of-the-Keys Date: Thu, 2 Mar 2023 21:17:50 +0200 Subject: [PATCH] Update playbooks_conditionals.rst (#80062) "changed" was missing from the docs --- docs/docsite/rst/playbook_guide/playbooks_conditionals.rst | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docs/docsite/rst/playbook_guide/playbooks_conditionals.rst b/docs/docsite/rst/playbook_guide/playbooks_conditionals.rst index f920fd74b4b..e1bf42d5cbb 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.