[CLEAN] Prune all docker
This commit is contained in:
parent
fcd5694fa8
commit
49a6a3f712
3 changed files with 16 additions and 0 deletions
|
@ -11,3 +11,5 @@
|
|||
- { role: home_assistant, tags: ["home_assistant"] }
|
||||
- { role: n8n, tags: ["n8n"] }
|
||||
- { role: matrix, tags: ["matrix"] }
|
||||
- { role: iptables, tags: ["iptables"] }
|
||||
- { role: clean, tags: ["clean"] }
|
||||
|
|
10
roles/clean/tasks/docker.yml
Normal file
10
roles/clean/tasks/docker.yml
Normal file
|
@ -0,0 +1,10 @@
|
|||
---
|
||||
|
||||
- name: Prune everything
|
||||
community.docker.docker_prune:
|
||||
containers: true
|
||||
images: true
|
||||
networks: true
|
||||
volumes: true
|
||||
builder_cache: true
|
||||
become: yes
|
4
roles/clean/tasks/main.yml
Normal file
4
roles/clean/tasks/main.yml
Normal file
|
@ -0,0 +1,4 @@
|
|||
---
|
||||
|
||||
- ansible.builtin.import_tasks: docker.yml
|
||||
name: docker
|
Loading…
Reference in a new issue