19 lines
496 B
YAML
19 lines
496 B
YAML
# vim: ft=yaml.ansible
|
|
---
|
|
- name: Copy Docker daemon config file
|
|
ansible.builtin.copy:
|
|
src: dockerd/daemon.json
|
|
dest: /etc/docker/daemon.json
|
|
owner: root
|
|
mode: u=rw,g=r,o=r
|
|
notify: reload-dockerd
|
|
|
|
- name: Configure cron job to prune unused Docker data weekly
|
|
ansible.builtin.cron:
|
|
name: Prune unused Docker data
|
|
cron_file: ansible_docker_prune
|
|
job: 'docker system prune -fa && docker volume prune -fa'
|
|
special_time: weekly
|
|
user: root
|
|
state: present
|