add swarm dashboard stack
This commit is contained in:
parent
08458532b8
commit
cbd4a06e88
3 changed files with 47 additions and 0 deletions
15
ansible/roles/swarm_dashboard/tasks/main.yml
Normal file
15
ansible/roles/swarm_dashboard/tasks/main.yml
Normal 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
|
Reference in a new issue