datacoop.ansible/roles/docker/tasks/services/watchtower.yml

18 lines
454 B
YAML
Raw Normal View History

# vim: ft=yaml.ansible
2019-03-04 15:28:51 +00:00
---
2023-09-30 16:15:27 +00:00
- name: Create Watchtower volume folder
file:
name: "{{ services.watchtower.volume_folder }}"
state: directory
- name: Upload Compose file for Watchtower
template:
src: compose-files/watchtower.yml.j2
dest: "{{ services.watchtower.volume_folder }}/docker-compose.yml"
- name: Deploy Watchtower
docker_compose:
project_src: "{{ services.watchtower.volume_folder }}"
pull: true
state: present