From 4c7bb6d9db3193f1fcc6ef03a0575dfb017cf82f Mon Sep 17 00:00:00 2001 From: Kevin Veen-Birkenbach Date: Fri, 29 Aug 2025 14:13:59 +0200 Subject: [PATCH] Solved path bugs and optimized them --- roles/docker-compose/handlers/main.yml | 2 +- roles/srv-tls-core/tasks/main.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/roles/docker-compose/handlers/main.yml b/roles/docker-compose/handlers/main.yml index f5f2215b..a80e2b33 100644 --- a/roles/docker-compose/handlers/main.yml +++ b/roles/docker-compose/handlers/main.yml @@ -15,7 +15,7 @@ - name: docker compose pull shell: | set -euo pipefail - lock="{{ [ PATH_DOCKER_COMPOSE_PULL_LOCK_DIR | docker_compose.directories.instance ] | path_join | hash('sha1') }}" + lock="{{ [ PATH_DOCKER_COMPOSE_PULL_LOCK_DIR, docker_compose.directories.instance ] | path_join | hash('sha1') }}" if [ ! -e "$lock" ]; then mkdir -p "$(dirname "$lock")" docker compose pull diff --git a/roles/srv-tls-core/tasks/main.yml b/roles/srv-tls-core/tasks/main.yml index e2514055..c4508433 100644 --- a/roles/srv-tls-core/tasks/main.yml +++ b/roles/srv-tls-core/tasks/main.yml @@ -7,7 +7,7 @@ when: run_once_srv_tls_core is not defined - name: "Include flavor '{{ CERTBOT_FLAVOR }}' for '{{ domain }}'" - include_tasks: "{{ role_path }}/tasks/flavors/{{ CERTBOT_FLAVOR }}.yml" + include_tasks: "{{ [role_path, 'tasks/flavors', CERTBOT_FLAVOR ~'.yml'] | path_join }}" #- name: "Cleanup dedicated cert for '{{ domain }}'" # command: >-