diff --git a/ansible/main.yml b/ansible/main.yml index 32c983f..03c6e50 100644 --- a/ansible/main.yml +++ b/ansible/main.yml @@ -24,7 +24,6 @@ docker_users: - "{{ user }}" - docker_cleanup - - watchtower - traefik # ZFS Hosts diff --git a/ansible/roles/watchtower/files/docker-compose.yml b/ansible/roles/watchtower/files/docker-compose.yml deleted file mode 100644 index a83fc869..0000000 --- a/ansible/roles/watchtower/files/docker-compose.yml +++ /dev/null @@ -1,12 +0,0 @@ -version: "2.3" -services: - watchtower: - image: containrrr/watchtower:latest - volumes: - - /var/run/docker.sock:/var/run/docker.sock - - "{{ home }}/.docker/config.json:/config.json:ro" - - /etc/timezone:/etc/timezone:ro - environment: - - WATCHTOWER_CLEANUP=true - - WATCHTOWER_SCHEDULE=0 12 * * * - restart: unless-stopped diff --git a/ansible/roles/watchtower/handlers/main.yml b/ansible/roles/watchtower/handlers/main.yml deleted file mode 100644 index 89a30c5..0000000 --- a/ansible/roles/watchtower/handlers/main.yml +++ /dev/null @@ -1,4 +0,0 @@ -- name: restart watchtower - shell: - chdir: /opt/watchtower - cmd: "{{ docker_update_command }}" diff --git a/ansible/roles/watchtower/tasks/main.yml b/ansible/roles/watchtower/tasks/main.yml deleted file mode 100644 index 97b5a85..0000000 --- a/ansible/roles/watchtower/tasks/main.yml +++ /dev/null @@ -1,17 +0,0 @@ -- name: Create install directory - file: - path: /opt/watchtower - state: directory - owner: "{{ docker_user.name }}" - mode: "{{ docker_compose_directory_mask }}" - become: true - -- name: Install compose file - template: - src: files/docker-compose.yml - dest: /opt/watchtower/docker-compose.yml - mode: "{{ docker_compose_file_mask }}" - owner: "{{ docker_user.name }}" - validate: /usr/bin/docker-compose -f %s config - notify: restart watchtower - become: true