Skip to content

maintenance logo

Maintenance role

Maintains operating system and disk space.

Usage

Configure the role.

maintenance: true # default: false
maintenance_job: true # default: false

And include it in your playbook.

- hosts: maintenance
  roles:
  - role: maintenance

Docs

Cleanup Docker system

Run this command to remove any unused containers, images, networks and caches.

docker system prune

Then run this command ro remove unattached volumes.

docker volume prune -a