Overcoming problems of the standard Ansible inventory file
26
-
Upload
jtyr -
Category
Technology
-
view
137 -
download
1
Transcript of Overcoming problems of the standard Ansible inventory file
● Inventory in YAML format● Possibility to split into multiple files● Self-generating group names● Truly hierarchical inventory vars files● Automatic .vault files loading● Support for group_vars templates● Possibility to add hosts to an other group● Possibility to include hosts from an other groups via regexp
1. git clone https://github.com/jtyr/ansible-yaml_inventory yaml_inventory2. ln -s yaml_inventory/yaml_inventory.py hosts3. ansible-playbook -i hosts site.yaml