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

18 lines
447 B
YAML
Raw Normal View History

# vim: ft=yaml.ansible
2019-03-15 11:38:36 +00:00
---
- name: create portainer volume folder
file:
name: "{{ services.portainer.volume_folder }}"
2019-03-15 11:38:36 +00:00
state: directory
2023-09-30 16:15:27 +00:00
- 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