Optimized code, so that 'docker compose up' can run until setup is finished without any interruptions

This commit is contained in:
2025-06-17 15:08:42 +02:00
parent 4fbf8f505c
commit 380aa4a37b
29 changed files with 165 additions and 84 deletions

View File

@@ -54,7 +54,7 @@
template:
src: "{{ config_inventory_path }}"
dest: "{{docker_repository_path}}/app/config.yaml"
notify: docker compose project setup
notify: docker compose up
when:
- run_once_docker_portfolio is not defined
- config_file.stat.exists
@@ -63,7 +63,7 @@
template:
src: "config.yaml.j2"
dest: "{{docker_repository_path}}/app/config.yaml"
notify: docker compose project setup
notify: docker compose up
when:
- run_once_docker_portfolio is not defined
- not config_file.stat.exists
@@ -72,7 +72,7 @@
template:
src: docker-compose.yml.j2
dest: "{docker_compose.directories.instance}}docker-compose.yml"
notify: docker compose project setup
notify: docker compose up
when: run_once_docker_portfolio is not defined
- name: run the portfolio tasks once