Browse Source

play with inventory groups

master
Nicolas Massé 5 years ago
parent
commit
16816e298d
  1. 1
      inventory-groups/group_vars/prod.yaml
  2. 1
      inventory-groups/group_vars/test.yaml
  3. 5
      inventory-groups/inventory-prod.ini
  4. 5
      inventory-groups/inventory-test.ini
  5. 4
      inventory-groups/test.yaml

1
inventory-groups/group_vars/prod.yaml

@ -0,0 +1 @@
env: prod

1
inventory-groups/group_vars/test.yaml

@ -0,0 +1 @@
env: test

5
inventory-groups/inventory-prod.ini

@ -0,0 +1,5 @@
[prod:children]
target
[target]
localhost ansible_connection=local ansible_python_interpreter=/usr/bin/python3

5
inventory-groups/inventory-test.ini

@ -0,0 +1,5 @@
[test:children]
target
[target]
localhost ansible_connection=local ansible_python_interpreter=/usr/bin/python3

4
inventory-groups/test.yaml

@ -0,0 +1,4 @@
- hosts: target
tasks:
- debug:
var: env
Loading…
Cancel
Save