I have two questions regarding variable behavior, given my file structure
My file structure is like so:
/roles
/common
/provision_ec2
/vars
/main.yml
/developer_list.yml
/tasks
/main.yml
/group_vars
/all
/settings.yml
/production
First: Why does a task in /roles/provision_ec2/main.yml not automatically
load a dictionary (or any list I presume) from
/roles/provision_ec2/vars/developer_list.yml?
Obviously vars/main.yml is going to get extremely crowded over time, do I
have to load any var file not named 'main.yml' manually?
Second: If I have added /group_vars/all/settings.yml to the ansible-vault,
and run a playbook which doesn't call any variables from that file, I have
realized I need to put in the vault password every time. It of course makes
sense to me why this happens (because /all is loaded every time), but is
still annoying. Is there a better way to structure my directories to avoid
putting the password in every time? Or do I need to just keep it in another
directory and manually load it when necessary?
Thanks a lot for the help.
--
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 [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/ansible-project/540314d9-79e8-4e91-a1ca-d2561d9c6c1d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.