Add warning about skipped vars (#63599)

This commit is contained in:
Caleb Collins-Parks 2019-11-05 13:25:15 -08:00 committed by Sandra McCann
parent 0e4716d326
commit f178c49c02

View file

@ -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::