Convert watchtower into its own role

This commit is contained in:
Jake Howard 2020-04-23 21:51:01 +01:00
parent 81ef4ad67a
commit 5585fb0b12
Signed by: jake
GPG Key ID: 57AFB45680EDD477
4 changed files with 6 additions and 8 deletions

View File

@ -21,6 +21,7 @@
docker_users:
- "{{ user }}"
- docker-cleanup
- traefik
- netdata
- traefik
- watchtower
- docker

View File

@ -49,9 +49,6 @@
- name: Install wallabag
include: wallabag.yml
- name: Install watchtower
include: watchtower.yml
- name: Install whoami
include: whoami.yml

View File

@ -1,4 +1,4 @@
- name: Create watchtower directory
- name: Create directory
file:
path: /opt/watchtower
state: directory
@ -6,9 +6,9 @@
mode: "{{ docker_compose_directory_mask }}"
become: true
- name: Install watchtower compose file
- name: Install compose file
template:
src: files/watchtower/docker-compose.yml
src: files/docker-compose.yml
dest: /opt/watchtower/docker-compose.yml
mode: "{{ docker_compose_file_mask }}"
owner: "{{ docker_user.name }}"
@ -16,7 +16,7 @@
register: compose_file
become: true
- name: Cycle watchtower container
- name: Cycle container
docker_compose:
project_src: /opt/watchtower
pull: true