Hi,
is it possible to split inventory in multiple files…
eg.
I have 3 projects on one virtual machine1, so I created group machine which consists of 3 subelements (projects), ProjectA, ProjectB and ProjectC
[Machine1]
ProjectA ansible_ssh_host=machine1_fqdn
ProjectB ansible_ssh_host=machine1_fqdn
ProjectC ansible_ssh_host=machine1_fqdn
So when I want to run some playbook I choose some (or all) of this projects.
But, my question is, is it possible to split ProjectA inventory file in multiple inventory files…
Somehow include in it every *.yml file in some specific folder…
eg.
ProjectA inventory consists of every *.yml file in ProjectA folder
So my hosts_vars would be:
ProjectA - file
ProjectA - folder
ProjectB - file
ProjectB - folder
ProjectC - file
ProjectC - folder
Thanks a lot!