Remove explicit svc.name

This commit is contained in:
Tobias Reisinger 2024-10-13 21:48:04 +02:00
parent 09e886c712
commit dbb3075c82
Signed by: serguzim
GPG key ID: 13AD60C237A28DFE
67 changed files with 36 additions and 87 deletions
roles/watchtower

View file

@ -2,9 +2,8 @@
- name: Set common facts
ansible.builtin.import_tasks: tasks/set-default-facts.yml
- name: Deploy {{ svc.name }}
- name: Deploy {{ role_name }}
vars:
svc: "{{ watchtower_svc }}"
env: "{{ watchtower_env }}"
compose: "{{ watchtower_compose }}"
block:

View file

@ -1,7 +1,4 @@
---
watchtower_svc:
name: watchtower
watchtower_env:
WATCHTOWER_LABEL_ENABLE: true
WATCHTOWER_CLEANUP: true
@ -11,11 +8,11 @@ watchtower_env:
# WATCHTOWER_NO_PULL: true
WATCHTOWER_NOTIFICATIONS: email
WATCHTOWER_NOTIFICATION_EMAIL_FROM: "{{ svc.name }}@serguzim.me"
WATCHTOWER_NOTIFICATION_EMAIL_FROM: "watchtower@serguzim.me"
WATCHTOWER_NOTIFICATION_EMAIL_TO: "{{ admin_email }}"
WATCHTOWER_NOTIFICATION_EMAIL_SERVER: "{{ mailer.host }}"
WATCHTOWER_NOTIFICATION_EMAIL_SERVER_PORT: "{{ mailer.port }}"
WATCHTOWER_NOTIFICATION_EMAIL_SERVER_USER: "{{ svc.name }}@serguzim.me"
WATCHTOWER_NOTIFICATION_EMAIL_SERVER_USER: "watchtower@serguzim.me"
WATCHTOWER_NOTIFICATION_EMAIL_SERVER_PASSWORD: "{{ vault_watchtower.mailer.pass }}"
WATCHTOWER_NOTIFICATION_EMAIL_DELAY: 5