18 lines
454 B
YAML
18 lines
454 B
YAML
# vim: ft=yaml.ansible
|
|
---
|
|
- 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
|