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