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

14 lines
354 B
YAML
Raw Normal View History

2021-12-11 16:28:17 +01:00
---
- 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