Difference between revisions of "Register: (Ansible)"

From wikieduonline
Jump to navigation Jump to search
Line 12: Line 12:
 
* <code>[[when:]]</code>
 
* <code>[[when:]]</code>
 
* <code>[[msg: The task includes an option with an undefined variable.]]</code>
 
* <code>[[msg: The task includes an option with an undefined variable.]]</code>
 +
* [[Ansible state]], <code>[[state:]]</code>
  
 
== See also ==
 
== See also ==

Revision as of 09:59, 6 December 2022

You can create variables from the output of an Ansible task with the task keyword.

If a task fails or is skipped, Ansible still registers a variable with a failure or skipped status, unless the task is skipped based on tags. See Tags for information on adding and using tags.


Related terms

See also

Advertising: