Refactor everything
This commit is contained in:
parent
2e100d290f
commit
3f2e60becf
69 changed files with 366 additions and 281 deletions
|
@ -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
|
||||
|
|
|
@ -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:
|
||||
|
|
Reference in a new issue