From d679fa599104d021c42cdfffb8550aac8551ebb4 Mon Sep 17 00:00:00 2001 From: zotabee <89345101+zotabee@users.noreply.github.com> Date: Mon, 26 Jan 2026 20:19:18 +0100 Subject: [PATCH] Fix watchtower role with a new fork + linted yml --- roles/watchtower/tasks/main.yml | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/roles/watchtower/tasks/main.yml b/roles/watchtower/tasks/main.yml index 643e481..9174a92 100644 --- a/roles/watchtower/tasks/main.yml +++ b/roles/watchtower/tasks/main.yml @@ -1,14 +1,14 @@ --- - name: Stop and remove any existing container - docker_container: + community.docker.docker_container: name: watchtower state: absent - name: Create and start container - docker_container: + community.docker.docker_container: name: watchtower - image: "containrrr/watchtower:{{ watchtower.tag }}" - pull: yes + image: "nickfedor/watchtower:{{ watchtower.tag }}" + pull: true recreate: true networks: - name: postfix @@ -16,7 +16,6 @@ - watchtower volumes: - /var/run/docker.sock:/var/run/docker.sock - - /etc/localtime:/etc/localtime:ro restart_policy: unless-stopped state: started env: @@ -33,4 +32,4 @@ WATCHTOWER_NOTIFICATION_EMAIL_SERVER_PORT: "{{ watchtower.notification_email_server_port }}" WATCHTOWER_NOTIFICATION_EMAIL_SERVER_USER: "{{ watchtower.notification_email_server_user }}" WATCHTOWER_NOTIFICATION_EMAIL_SERVER_PASSWORD: "{{ watchtower.notification_email_server_password }}" - WATCHTOWER_NOTIFICATION_EMAIL_DELAY: "{{ watchtower.notification_email_delay }}" \ No newline at end of file + WATCHTOWER_NOTIFICATION_EMAIL_DELAY: "{{ watchtower.notification_email_delay }}"