Fundamentally they do the same thing, though "register" applies to task
results.

They enter into the same per-inventory-host scope.









On Thu, Aug 14, 2014 at 5:55 AM, Steven Ringo <[email protected]>
wrote:

> Hi,
>
> Apart from the fact that *set_fact* is a task on its own and *register*
> captures the result of a task, is there any difference between the
> resulting variables' scope or lifecycle (or anything else) for example.
>
> Thanks,
>
> Steve
>
> --
> 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/e2ec718a-deba-4794-aa7b-e22abdfa646d%40googlegroups.com
> <https://groups.google.com/d/msgid/ansible-project/e2ec718a-deba-4794-aa7b-e22abdfa646d%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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/CA%2BnsWgzrHjnEnmNhwLTtjzM4gF1wGOLAmBQdc5ShwvKxw%3DQrrw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to