Ansible BuildAnsible Build
Home
Roles
Scripts
Mint System
Chat
GitHub
Home
Roles
Scripts
Mint System
Chat
GitHub
  • Maintenance role

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
Edit this page
Last Updated: 12/18/25, 1:42 PM
Contributors: Janik von Rotz