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: docker_users:
- "{{ user }}" - "{{ user }}"
- docker-cleanup - docker-cleanup
- traefik
- netdata - netdata
- traefik
- watchtower
- docker - docker

View file

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

View file

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