register a variable in one playbook and use in a different playbook

62 views
Skip to first unread message

Felix Wong

unread,
Apr 16, 2015, 8:12:52 PM4/16/15
to ansible...@googlegroups.com
Hi,

is there a way to register a variable in one playbook and then use it somewhere else in a different playbook?

Adam Hamsik

unread,
Apr 18, 2015, 2:37:09 PM4/18/15
to ansible...@googlegroups.com


On Friday, April 17, 2015 at 2:12:52 AM UTC+2, Felix Wong wrote:
Hi,

is there a way to register a variable in one playbook and then use it somewhere else in a different playbook?

If you register that variable with set_fact you should be able to access it with hostvars[]
Reply all
Reply to author
Forward
0 new messages