add shephard to automatically update services

closes #1
This commit is contained in:
Pim Kunis 2023-05-03 14:24:18 +02:00
parent 0617923d4d
commit 02c8bc6f05
3 changed files with 58 additions and 0 deletions

View file

@ -0,0 +1,15 @@
- name: Create working directory
file:
path: /srv/shephard
state: directory
- name: Copy Docker stack file
copy:
src: "{{ role_path }}/docker-stack.yml"
dest: /srv/shephard/docker-stack.yml
- name: Deploy Docker stack
docker_stack:
name: shephard
compose:
- /srv/shephard/docker-stack.yml