external api to get vars

13 views
Skip to first unread message

Shankar Bala

unread,
May 16, 2019, 10:35:43 AM5/16/19
to Ansible Project
hi all

i have a playbook containing multiple roles..
role1 should call external api and set the result from the api as "vars"
role2 should use those vars in their tasks

is this something we can achieve ??

Shan

Brian Coca

unread,
May 16, 2019, 12:58:31 PM5/16/19
to Ansible Project
yes

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

Jeremy Hobbs

unread,
May 16, 2019, 4:42:07 PM5/16/19
to Ansible Project
I'm about to build a similar playbook.  Would you know of any examples you can point me to?  

On Thursday, May 16, 2019 at 11:58:31 AM UTC-5, Brian Coca wrote:
yes

----------
Brian Coca
Reply all
Reply to author
Forward
0 new messages