deployment/roles/portainer-deploy/tasks/main.yml

14 lines
354 B
YAML

---
- name: Create public network.
shell:
docker network create -d overlay public
register: create_network
failed_when: create_network.rc not in [ 0, 1 ]
changed_when: create_network.rc == 0
- name: Copy over the Portainer stack file.
template:
src: portainer-stack.yml.j2
dest: /srv/portainer-stack.yml
notify: deploy portainer