ansible/cron/prune.yaml

17 lines
368 B
YAML
Raw Normal View History

2023-07-14 21:16:51 +05:30
---
- name: Docker Prunes (Daily Cron)
2023-09-14 14:42:16 +05:30
hosts: privfrontends
2023-07-14 21:16:51 +05:30
tasks:
- name: Do thing
community.docker.docker_prune:
containers: true
images: true
networks: true
2023-07-17 16:36:44 +05:30
timeout: 1000
2024-03-03 10:07:13 +05:30
- hosts: in
tasks:
- name: Run fstrim (IN Node)
ansible.builtin.command: fstrim -av
register: out
changed_when: out.rc != 0