Refactor everything

This commit is contained in:
Tobias Reisinger 2023-12-14 02:20:13 +01:00
parent 2e100d290f
commit 3f2e60becf
Signed by: serguzim
GPG key ID: 13AD60C237A28DFE
69 changed files with 366 additions and 281 deletions
_ansible/roles/watchtower

View file

@ -1,8 +1,12 @@
---
- name: Set common facts
ansible.builtin.import_tasks: tasks/set-default-facts.yml
- name: Deploy {{ svc.name }}
tags:
- watchtower
- container
vars:
svc: "{{ watchtower_svc }}"
env: "{{ watchtower_env }}"
compose: "{{ watchtower_compose }}"
block:
- name: Import tasks to deploy common service
ansible.builtin.import_tasks: tasks/deploy-common-service.yml

View file

@ -1,8 +1,8 @@
---
svc:
watchtower_svc:
name: watchtower
svc_env:
watchtower_env:
WATCHTOWER_LABEL_ENABLE: true
WATCHTOWER_CLEANUP: true
WATCHTOWER_SCHEDULE: "0 27 20 * * *"
@ -16,10 +16,9 @@ svc_env:
WATCHTOWER_NOTIFICATION_EMAIL_SERVER_PASSWORD: "{{ vault_watchtower.mailer.pass }}"
WATCHTOWER_NOTIFICATION_EMAIL_DELAY: 5
compose:
watchtower_compose:
watchtower: false
image: containrrr/watchtower
env: true
volumes:
- /var/run/docker.sock:/var/run/docker.sock
file: