Ansible 2.1.0 organizing host_vars

14 views
Skip to first unread message

Marvyn Alcantara

unread,
Aug 22, 2016, 8:34:59 AM8/22/16
to Ansible Project
Hello

we would like to ask if this is possible, Organizing host specific configurations for web servers via host_vars directory. our goal is to consolidate all host specific machine configurations (ie, IP addresses1, IP address2, virtual host configurations per hosts.. etc)

our current playbook scenario

inventory/
playbooks/
               -> cms-generic/
                                    -> group_vars/group_varible.yml
                                    -> host_vars/host_server1.yml
                                                       host_server2.yml
                                                       host_serverN.yml

.....
.....

we are wondering if this are possible

inventory/
playbooks/
               -> cms-generic/
                                    -> group_vars/group_varible.yml
                                    -> host_vars/groupA/host_server1.yml
                                                                  host_server2.yml
                                    -> host_vars/groupB/host_server3.yml
                                                                 host_server4.yml
                                    -> host_vars/groupN/host_serverN.yml

Thank you

Reply all
Reply to author
Forward
0 new messages