add static stack
start using remote docker hosts to deploy
This commit is contained in:
parent
f7fa131fd8
commit
57d66c8afa
4 changed files with 36 additions and 0 deletions
8
ansible/roles/static/tasks/main.yml
Normal file
8
ansible/roles/static/tasks/main.yml
Normal file
|
@ -0,0 +1,8 @@
|
|||
- name: Deploy Docker stack
|
||||
docker_stack:
|
||||
name: static
|
||||
compose:
|
||||
- "{{ lookup('template', '{{ role_path }}/docker-stack.yml.j2') | from_yaml }}"
|
||||
environment:
|
||||
DOCKER_HOST: ssh://root@maestro.dmz
|
||||
delegate_to: localhost
|
Reference in a new issue