How to read the local variables in a role

19 views
Skip to first unread message

Guillermo Colmena

unread,
Mar 2, 2018, 5:03:57 AM3/2/18
to Ansible Project

Hi community,


I was forwarded from github website to this group ; )


I am trying to use local variables on the roles I have created, but once the var file is created. I don't know how and from where call those. At the moment it is not reading those local vars the role that i have created.

In that role , I am calling those vars following these steps:

vars_files:
   - /vars/main.yml

Let me know if there is a possible way to do it or somebody has been working on this before with success, perhaps calling those from the main playbook which contains the call to the hosts and roles? ;)

Thanks,
Best Regards.
Sivana

Guillermo Colmena

unread,
Mar 5, 2018, 4:19:13 AM3/5/18
to Ansible Project
Hi, let me know if someone could guide me with this ;0

Kind regards,
Sivana
Reply all
Reply to author
Forward
0 new messages