This repository has been archived on 2023-12-26. You can view files and clone it, but cannot push or open issues or pull requests.
shoarma/ansible/roles/swarm_dashboard/tasks/main.yml

15 lines
362 B
YAML

- 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