diff --git a/inventory-groups/group_vars/prod.yaml b/inventory-groups/group_vars/prod.yaml new file mode 100644 index 0000000..2fdef9a --- /dev/null +++ b/inventory-groups/group_vars/prod.yaml @@ -0,0 +1 @@ +env: prod diff --git a/inventory-groups/group_vars/test.yaml b/inventory-groups/group_vars/test.yaml new file mode 100644 index 0000000..6e1be1f --- /dev/null +++ b/inventory-groups/group_vars/test.yaml @@ -0,0 +1 @@ +env: test diff --git a/inventory-groups/inventory-prod.ini b/inventory-groups/inventory-prod.ini new file mode 100644 index 0000000..0c1914f --- /dev/null +++ b/inventory-groups/inventory-prod.ini @@ -0,0 +1,5 @@ +[prod:children] +target + +[target] +localhost ansible_connection=local ansible_python_interpreter=/usr/bin/python3 diff --git a/inventory-groups/inventory-test.ini b/inventory-groups/inventory-test.ini new file mode 100644 index 0000000..c5ab518 --- /dev/null +++ b/inventory-groups/inventory-test.ini @@ -0,0 +1,5 @@ +[test:children] +target + +[target] +localhost ansible_connection=local ansible_python_interpreter=/usr/bin/python3 diff --git a/inventory-groups/test.yaml b/inventory-groups/test.yaml new file mode 100644 index 0000000..0adae31 --- /dev/null +++ b/inventory-groups/test.yaml @@ -0,0 +1,4 @@ +- hosts: target + tasks: + - debug: + var: env