19 lines
462 B
YAML
19 lines
462 B
YAML
# vim: ft=yaml.ansible
|
|
---
|
|
- name: Create Docker network for Watchtower
|
|
docker_network:
|
|
name: watchtower
|
|
state: present
|
|
|
|
- name: Deploy Watchtower Docker container
|
|
docker_container:
|
|
name: watchtower
|
|
image: containrrr/watchtower:{{ services.watchtower.version }}
|
|
restart_policy: always
|
|
networks:
|
|
- name: watchtower
|
|
env:
|
|
WATCHTOWER_POLL_INTERVAL: '3600'
|
|
volumes:
|
|
- /var/run/docker.sock:/var/run/docker.sock:rw
|