Moved blocks to include_tasks to raise performance. Deploy was really slow

This commit is contained in:
2025-08-11 12:28:31 +02:00
parent b6e571a496
commit 6e04ac58d2
52 changed files with 609 additions and 628 deletions

View File

@@ -0,0 +1,14 @@
- 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: "{{ docker_repository_directory }}"
ignore_errors: true
notify: recreate discourse