Add docker-prune playbook

This commit is contained in:
Salt 2021-08-15 00:59:08 -05:00
parent be7fa959ea
commit 73abab9607
2 changed files with 19 additions and 1 deletions

14
playbooks/docker-prune.yml Executable file
View 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

View File

@ -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