set_fact vs register

7,086 views
Skip to first unread message

Steven Ringo

unread,
Aug 14, 2014, 5:55:48 AM8/14/14
to ansible...@googlegroups.com
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

Michael DeHaan

unread,
Aug 14, 2014, 7:34:31 AM8/14/14
to ansible...@googlegroups.com
Fundamentally they do the same thing, though "register" applies to task results.

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









--
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 ansible-proje...@googlegroups.com.
To post to this group, send email to ansible...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/e2ec718a-deba-4794-aa7b-e22abdfa646d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages