Convert watchtower into its own role
This commit is contained in:
parent
81ef4ad67a
commit
5585fb0b12
4 changed files with 6 additions and 8 deletions
|
@ -21,6 +21,7 @@
|
|||
docker_users:
|
||||
- "{{ user }}"
|
||||
- docker-cleanup
|
||||
- traefik
|
||||
- netdata
|
||||
- traefik
|
||||
- watchtower
|
||||
- docker
|
||||
|
|
|
@ -49,9 +49,6 @@
|
|||
- name: Install wallabag
|
||||
include: wallabag.yml
|
||||
|
||||
- name: Install watchtower
|
||||
include: watchtower.yml
|
||||
|
||||
- name: Install whoami
|
||||
include: whoami.yml
|
||||
|
||||
|
|
|
@ -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
|
Loading…
Reference in a new issue