Skip to content

Latest commit

 

History

History
21 lines (14 loc) · 522 Bytes

README.md

File metadata and controls

21 lines (14 loc) · 522 Bytes

Cleanup role

Cleanup Ansible roles.

Usage

Include it in your playbook.

- hosts: clean
  roles:
  - role: clean

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 ansible-playbook -i inventories/odoo plays/clean.yml.yml -l host.example.com -t odoo,odoo_volume,odoo_data