mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-07 05:42:50 +00:00
Add Jinja2 filter 'skipped' to test for a registered variable from a skipped task
This commit is contained in:
@@ -300,6 +300,8 @@ decide to do something conditionally based on success or failure::
|
||||
when: result|failed
|
||||
- action: command /bin/something_else
|
||||
when: result|success
|
||||
- action: command /bin/still/something_else
|
||||
when: result|skipped
|
||||
|
||||
|
||||
As a reminder, to see what derived variables are available, you can do::
|
||||
|
||||
Reference in New Issue
Block a user