Add docker-prune playbook
This commit is contained in:
parent
be7fa959ea
commit
73abab9607
14
playbooks/docker-prune.yml
Executable file
14
playbooks/docker-prune.yml
Executable file
@ -0,0 +1,14 @@
|
|||||||
|
#!/usr/bin/env ansible-playbook
|
||||||
|
# vim:ft=ansible:
|
||||||
|
---
|
||||||
|
- hosts: tags_docker-prune
|
||||||
|
tasks:
|
||||||
|
- name: prune old docker assets
|
||||||
|
community.docker.docker_prune:
|
||||||
|
containers: yes
|
||||||
|
images: yes
|
||||||
|
image_filters:
|
||||||
|
dangling: no
|
||||||
|
networks: yes
|
||||||
|
volumes: yes
|
||||||
|
builder_cache: yes
|
6
site.yml
6
site.yml
@ -37,9 +37,10 @@
|
|||||||
UsePAM: yes
|
UsePAM: yes
|
||||||
X11Forwarding: no
|
X11Forwarding: no
|
||||||
tags: [ sshd, common ]
|
tags: [ sshd, common ]
|
||||||
# Import specific playbooks
|
# Fundamental daemon configuration
|
||||||
- import_playbook: playbooks/zerotier.yml
|
- import_playbook: playbooks/zerotier.yml
|
||||||
- import_playbook: playbooks/snmp.yml
|
- import_playbook: playbooks/snmp.yml
|
||||||
|
# Application configuration
|
||||||
- import_playbook: playbooks/db.yml
|
- import_playbook: playbooks/db.yml
|
||||||
- import_playbook: playbooks/web.yml
|
- import_playbook: playbooks/web.yml
|
||||||
- import_playbook: playbooks/game.yml
|
- import_playbook: playbooks/game.yml
|
||||||
@ -47,4 +48,7 @@
|
|||||||
- import_playbook: playbooks/pistorage.yml
|
- import_playbook: playbooks/pistorage.yml
|
||||||
- import_playbook: playbooks/pik8s.yml
|
- import_playbook: playbooks/pik8s.yml
|
||||||
- import_playbook: playbooks/desktop.yml
|
- import_playbook: playbooks/desktop.yml
|
||||||
|
# Background task configuration
|
||||||
- import_playbook: playbooks/ansible-pull.yml
|
- import_playbook: playbooks/ansible-pull.yml
|
||||||
|
# Housekeeping
|
||||||
|
- import_playbook: playbooks/docker-prune.yml
|
||||||
|
Loading…
Reference in New Issue
Block a user