hey,
i have the following directory layout, and its not working:
inventories/
production/
hosts # inventory file for production servers
group_vars/
group1.yml # here we assign variables to particular groups
group2.yml
host_vars/
hostname1.yml # here we assign variables to particular systems
hostname2.yml
staging/
hosts # inventory file for staging environment
group_vars/
group1.yml # here we assign variables to particular groups
group2.yml
host_vars/
stagehost1.yml # here we assign variables to particular systems
stagehost2.yml
library/
module_utils/
filter_plugins/
site.yml
webservers.yml
dbservers.yml
roles/
common/
webtier/
monitoring/
fooapp/
i run the command:
ansible-playbook -i inventories site.yml --vault-password-file=/etc/ansible/password-file
and it says:
that is failes to connect with ssh, but i told it in the group1.yml to connect with 443.
i created the group_vars folder where my site,yml is and under that created the all.yml and then it connects but doesnt find all the veriables in the group1.yml.
WHY?