don't use /srv on docker manager

This commit is contained in:
Pim Kunis 2023-05-20 13:45:25 +02:00
parent 57d66c8afa
commit 1d3f4110f4
22 changed files with 171 additions and 325 deletions

View file

@ -1,15 +1,8 @@
- name: Create working directory
file:
path: /srv/kms
state: directory
- name: Copy Docker stack file
template:
src: "{{ role_path }}/docker-stack.yml.j2"
dest: /srv/kms/docker-stack.yml
- name: Deploy Docker stack
docker_stack:
name: kms
compose:
- /srv/kms/docker-stack.yml
- "{{ lookup('template', '{{ role_path }}/docker-stack.yml.j2') | from_yaml }}"
environment:
DOCKER_HOST: ssh://root@maestro.dmz
delegate_to: localhost