overcoming problems of the standard ansible inventory file

26

Upload: jtyr

Post on 22-Jan-2018

137 views

Category:

Technology


1 download

TRANSCRIPT

●●

○○○○

●○○

●○○○○

●○

●○○○

●○

■■

○○

●○

●●●

->

● 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

<<: *

<<: *

->->

->->

->