Add warning about skipped vars (#63599)
This commit is contained in:
parent
0e4716d326
commit
f178c49c02
1 changed files with 1 additions and 0 deletions
|
@ -69,6 +69,7 @@ decide to do something conditionally based on success or failure::
|
|||
|
||||
|
||||
.. note:: both `success` and `succeeded` work (`fail`/`failed`, etc).
|
||||
.. warning:: You might expect a variable of a skipped task to be undefined and use `defined` or `default` to check that. **This is incorrect**! Even when a task is failed or skipped the variable is still registered with a failed or skipped status. See :ref:`registered_variables`.
|
||||
|
||||
|
||||
To see what facts are available on a particular system, you can do the following in a playbook::
|
||||
|
|
Loading…
Reference in a new issue