Add play to everything playb. for deploying Docker Compose applications
Also introduce a new group for hosts, for which this play should be run, called Docker_Compose_Hosts. Finally add cit-ansible-test and cit-docker-host to this group with an empty project list initially.
This commit is contained in:
1
inventories/hetzner/host_vars/cit-ansible-test.yaml
Normal file
1
inventories/hetzner/host_vars/cit-ansible-test.yaml
Normal file
@@ -0,0 +1 @@
|
||||
docker_compose__projects: [ ]
|
||||
1
inventories/hetzner/host_vars/cit-docker-host.yaml
Normal file
1
inventories/hetzner/host_vars/cit-docker-host.yaml
Normal file
@@ -0,0 +1 @@
|
||||
docker_compose__projects: [ ]
|
||||
@@ -19,3 +19,7 @@ all:
|
||||
hosts:
|
||||
cit-ansible-test:
|
||||
cit-docker-host:
|
||||
Docker_Compose_Hosts:
|
||||
hosts:
|
||||
cit-ansible-test:
|
||||
cit-docker-host:
|
||||
|
||||
@@ -5,3 +5,8 @@
|
||||
hosts: Docker_Hosts
|
||||
roles:
|
||||
- docker
|
||||
|
||||
- name: Ensure deployment of Docker Compose applications
|
||||
hosts: Docker_Compose_Hosts
|
||||
roles:
|
||||
- docker_compose
|
||||
|
||||
Reference in New Issue
Block a user