The when: clause affects task execution, while register: puts into a
variable the status and output of a task.

So 'skipped' is a 'valid status of a task', which is what then is put
into the registered variable, this way subsequent tasks can do this:

when: registeredvar is skipped

to execute another task when previous one is skipped (or not + other
conditions).


----------
Brian Coca

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/CACVha7c3TjSGUSDD6WkeoJ5CFvnueUnopxdBT%2B2oHN7twBjGYw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to