Compare commits
No commits in common. "8e893b470e1976bce3187dd842769d83587d3c2f" and "8819fa68bdd1ea19638455413dae69d5f0c8515f" have entirely different histories.
8e893b470e
...
8819fa68bd
2 changed files with 5 additions and 10 deletions
|
@ -1,12 +1,7 @@
|
||||||
---
|
---
|
||||||
- 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
|
||||||
command: docker system prune -af
|
ansible.builtin.shell:
|
||||||
register: docker_prune
|
cmd: docker system prune -af
|
||||||
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
|
chdir: ~/Docker/photoview-docker
|
||||||
cmd: docker-compose pull -q
|
cmd: docker-compose pull -q
|
||||||
register: pv_pull
|
register: pv_pull
|
||||||
changed_when: pv_pull.stdout != '' or pv_pull.stderr != ''
|
changed_when: "pv_pull.stdout != ''"
|
||||||
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 != '' or vw_pull.stderr != ''
|
changed_when: "vw_pull.stdout != ''"
|
||||||
notify:
|
notify:
|
||||||
- Restart Vaultwarden
|
- Restart Vaultwarden
|
||||||
|
|
||||||
|
|
Reference in a new issue