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

clean logo

Cleanup role

Cleanup Ansible roles.

Usage

Include it in your playbook.

- hosts: cleanup
  roles:
  - role: cleanup

Run the playbook and use the role with suffixes as tags. Here is an example for Odoo:

  • odoo: This will remove the Odoo container.
  • odoo_data: This will remove the Odoo data directory.
  • odoo_volume: This will remove the Odoo volume.

So to remove everything you would run task play -i inventories/odoo plays/cleanup .yml.yml -l host.example.com -t odoo,odoo_volume,odoo_data

Docs

Available tags for cleanup

  • bigbluebutton
  • bookstack
  • cadvisor
  • certbot
  • collabora_code
  • commento
  • crowdsec
  • docker_compose
  • docker_network
  • docker_swarm
  • fail2ban
  • fathom
  • grafana
  • iam
  • innernet
  • keycloak
  • loki
  • mailhog
  • meilisearch
  • metabase
  • moodle
  • mysql
  • n8n
  • nextcloud
  • nginx
  • node_exporter
  • odoo
  • odoo_scripts
  • openldap
  • packages
  • pgadmin
  • postgres
  • prometheus
  • promtail
  • rabbitmq
  • redis
  • restic
  • wordpress
Edit this page
Last Updated: 11/5/25, 8:46 AM
Contributors: Janik von Rotz