diff --git a/src/ansible_creator/resources/playbook_project/inventory/group_vars/db_servers.yml.j2 b/src/ansible_creator/resources/playbook_project/inventory/group_vars/db_servers.yml.j2 new file mode 100644 index 00000000..9fafc14f --- /dev/null +++ b/src/ansible_creator/resources/playbook_project/inventory/group_vars/db_servers.yml.j2 @@ -0,0 +1,3 @@ +--- +http_port: 80 +app_version: "1.0.0" diff --git a/src/ansible_creator/resources/playbook_project/inventory/group_vars/production.yml.j2 b/src/ansible_creator/resources/playbook_project/inventory/group_vars/production.yml.j2 new file mode 100644 index 00000000..9fafc14f --- /dev/null +++ b/src/ansible_creator/resources/playbook_project/inventory/group_vars/production.yml.j2 @@ -0,0 +1,3 @@ +--- +http_port: 80 +app_version: "1.0.0" diff --git a/src/ansible_creator/resources/playbook_project/inventory/group_vars/test.yml.j2 b/src/ansible_creator/resources/playbook_project/inventory/group_vars/test.yml.j2 new file mode 100644 index 00000000..9fafc14f --- /dev/null +++ b/src/ansible_creator/resources/playbook_project/inventory/group_vars/test.yml.j2 @@ -0,0 +1,3 @@ +--- +http_port: 80 +app_version: "1.0.0" diff --git a/src/ansible_creator/resources/playbook_project/inventory/hosts.yml.j2 b/src/ansible_creator/resources/playbook_project/inventory/hosts.yml.j2 index 59779b88..e3f96426 100644 --- a/src/ansible_creator/resources/playbook_project/inventory/hosts.yml.j2 +++ b/src/ansible_creator/resources/playbook_project/inventory/hosts.yml.j2 @@ -22,3 +22,13 @@ all: hosts: switch1: switch2: + production: + hosts: + server1: + ansible_host: 192.168.1.101 + server2: + ansible_host: 192.168.1.102 + test: + hosts: + server3: + ansible_host: 192.168.1.103 diff --git a/tests/fixtures/project/playbook_project/inventory/group_vars/db_servers.yml b/tests/fixtures/project/playbook_project/inventory/group_vars/db_servers.yml new file mode 100644 index 00000000..9fafc14f --- /dev/null +++ b/tests/fixtures/project/playbook_project/inventory/group_vars/db_servers.yml @@ -0,0 +1,3 @@ +--- +http_port: 80 +app_version: "1.0.0" diff --git a/tests/fixtures/project/playbook_project/inventory/group_vars/production.yml b/tests/fixtures/project/playbook_project/inventory/group_vars/production.yml new file mode 100644 index 00000000..9fafc14f --- /dev/null +++ b/tests/fixtures/project/playbook_project/inventory/group_vars/production.yml @@ -0,0 +1,3 @@ +--- +http_port: 80 +app_version: "1.0.0" diff --git a/tests/fixtures/project/playbook_project/inventory/group_vars/test.yml b/tests/fixtures/project/playbook_project/inventory/group_vars/test.yml new file mode 100644 index 00000000..9fafc14f --- /dev/null +++ b/tests/fixtures/project/playbook_project/inventory/group_vars/test.yml @@ -0,0 +1,3 @@ +--- +http_port: 80 +app_version: "1.0.0" diff --git a/tests/fixtures/project/playbook_project/inventory/hosts.yml b/tests/fixtures/project/playbook_project/inventory/hosts.yml index 59779b88..e3f96426 100644 --- a/tests/fixtures/project/playbook_project/inventory/hosts.yml +++ b/tests/fixtures/project/playbook_project/inventory/hosts.yml @@ -22,3 +22,13 @@ all: hosts: switch1: switch2: + production: + hosts: + server1: + ansible_host: 192.168.1.101 + server2: + ansible_host: 192.168.1.102 + test: + hosts: + server3: + ansible_host: 192.168.1.103