add swarm dashboard stack

This commit is contained in:
Pim Kunis 2023-05-03 13:35:22 +02:00
parent 08458532b8
commit cbd4a06e88
3 changed files with 47 additions and 0 deletions

View file

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