#Chris one last question where does the
1 messages · Page 1 of 1 (latest)
So Ansible has a bunch of place you can put your variables
typicaly i would put in it the role vars directory
https://docs.ansible.com/ansible/latest/user_guide/playbooks_variables.html#defining-variables-in-included-files-and-roles and then import it like this example
That's what I would think, but main.yml in the vars directory is empty, and the playbook specifies vars_file, which wouldn't be needed if it was in the vars directory.
So if I specify it in the playbook, it becomes available to all of the modules that the role task uses?
it been a while since i used multiple roles, i'm not 100% sure. This might be a better question to ask Redhat (Ansible them selfs). I looked through their documentation and they don't clearly state how that works