# vim: ft=yaml.ansible
---
- name: Deploy Watchtower Docker container
docker_container:
name: watchtower
image: "containrrr/watchtower:{{ services.watchtower.version }}"
restart_policy: unless-stopped
env:
WATCHTOWER_POLL_INTERVAL: '3600'
volumes:
- /var/run/docker.sock:/var/run/docker.sock:rw