ansible/roles/docker/tasks/services/portainer.yml

18 lines
447 B
YAML

# vim: ft=yaml.ansible
---
- name: create portainer volume folder
file:
name: "{{ services.portainer.volume_folder }}"
state: directory
- name: Upload Compose file for Portainer
template:
src: compose-files/portainer.yml.j2
dest: "{{ services.portainer.volume_folder }}/docker-compose.yml"
- name: Deploy Portainer
docker_compose:
project_src: "{{ services.portainer.volume_folder }}"
pull: true
state: present