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

@@ -3,8 +3,15 @@
include_role:
name: cmp-db-docker-proxy
- name: Update database credentials
include_tasks: database.yml
- name: Check if config.php exists in EspoCRM
command: docker exec --user root {{ espocrm_name }} test -f {{ espocrm_config_file }}
register: config_file_exists
changed_when: false
failed_when: false
- name: Patch EspoCRM config.php with updated DB credentials
include_tasks: 01_patch_config.yml
when: config_file_exists.rc == 0
- name: Flush handlers to make DB available before password reset
meta: flush_handlers