---
- hosts: all
gather_facts: false
tasks:
- name: Load variables
include_vars:
dir: "{{ dokku_lib_root }}/data/ansible/gitea/vars/"
extensions:
- yml
- name: Remove host Gitea group
group:
name: gitea
state: absent
become: true
- name: Remove host Gitea user
user:
- name: Remove mariadb database
shell: "dokku mariadb:destroy gitea --force"
args:
removes: /var/lib/dokku/services/mariadb/gitea
- name: Remove volume mount configuration directories
file:
path: "{{ item }}"
with_items:
- /var/lib/gitea
- /var/lib/dokku/services/mariadb/gitea