This repository has been archived on 2020-09-30. You can view files and clone it, but cannot push or open issues or pull requests.
id.autonomic.zone/ansible/post-delete.yml
2020-03-22 15:40:59 +01:00

24 lines
583 B
YAML

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