ansible-nas/roles/watchtower/tasks/main.yml

14 lines
355 B
YAML
Raw Normal View History

---
- name: Watchtower Docker Container
docker_container:
name: watchtower
2021-01-14 10:42:33 +00:00
image: containrrr/watchtower
pull: true
volumes:
- "/var/run/docker.sock:/var/run/docker.sock"
env:
TZ: "{{ ansible_nas_timezone }}"
2018-12-28 23:28:30 +00:00
command: "{{ watchtower_command }}"
restart_policy: unless-stopped
memory: "{{ watchtower_memory }}"