This repository has been archived on 2020-10-27. You can view files and clone it, but cannot push or open issues or pull requests.
git.autonomic.zone/ansible/post-delete.yml

37 lines
816 B
YAML
Raw Normal View History

2020-03-22 11:14:58 +00:00
---
- hosts: all
2020-03-22 11:26:48 +00:00
gather_facts: false
2020-03-22 11:14:58 +00:00
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: gitea
state: absent
become: true
- name: Remove mariadb database
shell: "dokku mariadb:destroy gitea --force"
args:
removes: /var/lib/dokku/services/mariadb/gitea
2020-03-22 11:26:48 +00:00
become: true
2020-03-22 11:14:58 +00:00
- name: Remove volume mount configuration directories
file:
path: "{{ item }}"
state: absent
with_items:
- /var/lib/gitea
- /var/lib/dokku/services/mariadb/gitea
become: true