Compare commits
2 commits
8819fa68bd
...
8e893b470e
Author | SHA1 | Date | |
---|---|---|---|
8e893b470e | |||
b5f73defb8 |
2 changed files with 10 additions and 5 deletions
|
@ -1,7 +1,12 @@
|
||||||
---
|
---
|
||||||
- name: Prune docker
|
- name: Prune docker
|
||||||
hosts: all
|
hosts: all
|
||||||
|
|
||||||
|
vars:
|
||||||
|
prune_def: "Total reclaimed space: 0B"
|
||||||
|
|
||||||
tasks:
|
tasks:
|
||||||
- name: Docker prune all
|
- name: Docker prune all
|
||||||
ansible.builtin.shell:
|
command: docker system prune -af
|
||||||
cmd: docker system prune -af
|
register: docker_prune
|
||||||
|
changed_when: docker_prune.stdout != prune_def
|
||||||
|
|
|
@ -19,10 +19,10 @@
|
||||||
tasks:
|
tasks:
|
||||||
- name: Docker pull Photoview
|
- name: Docker pull Photoview
|
||||||
command:
|
command:
|
||||||
chdir: ~/Docker/photoview-docker
|
chdir: ~/Docker/photoview
|
||||||
cmd: docker-compose pull -q
|
cmd: docker-compose pull -q
|
||||||
register: pv_pull
|
register: pv_pull
|
||||||
changed_when: "pv_pull.stdout != ''"
|
changed_when: pv_pull.stdout != '' or pv_pull.stderr != ''
|
||||||
notify:
|
notify:
|
||||||
- Restart Photoview
|
- Restart Photoview
|
||||||
- name: Docker pull Vaultwarden
|
- name: Docker pull Vaultwarden
|
||||||
|
@ -30,7 +30,7 @@
|
||||||
chdir: ~/Docker/vaultwarden
|
chdir: ~/Docker/vaultwarden
|
||||||
cmd: docker-compose pull -q
|
cmd: docker-compose pull -q
|
||||||
register: vw_pull
|
register: vw_pull
|
||||||
changed_when: "vw_pull.stdout != ''"
|
changed_when: vw_pull.stdout != '' or vw_pull.stderr != ''
|
||||||
notify:
|
notify:
|
||||||
- Restart Vaultwarden
|
- Restart Vaultwarden
|
||||||
|
|
||||||
|
|
Reference in a new issue