mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2025-08-17 09:24:32 +02:00
14 lines
567 B
YAML
14 lines
567 B
YAML
- name: "Load database variables for reset function"
|
|
include_vars: "{{playbook_dir}}/roles/cmp-rdbms/vars/main.yml"
|
|
|
|
- name: "cleanup central database from {{ application_id }}_default network"
|
|
command:
|
|
cmd: "docker network disconnect {{applications | get_app_conf(application_id, 'network', True)}} {{ database_host }}"
|
|
ignore_errors: true
|
|
|
|
- name: "destroy container {{ DISCOURSE_CONTAINER }}"
|
|
command:
|
|
cmd: "./launcher destroy {{ DISCOURSE_CONTAINER }}"
|
|
chdir: "{{ DISCOURSE_REPOSITORY_DIR }}"
|
|
ignore_errors: true
|
|
notify: recreate discourse |