From 56fb063b9d3d5a0374b1806ebc9af2431f450606 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alexander=20K=C3=A4b?= <alexander.kaeb@h-da.de> Date: Mon, 19 Aug 2024 11:55:32 +0200 Subject: [PATCH] fix: only create a single tmp directory --- tasks/main.yml | 2 +- tasks/sidecar.yml | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/tasks/main.yml b/tasks/main.yml index 8f6330f..e9f30e6 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -22,7 +22,7 @@ - name: Fail if 'ca-store' host group is missing while using opetion 'use_central_ca_host' # noqa: run_once[task] ansible.builtin.fail: - msg: "Please add a host group 'sidecar-ca' with the host(s) storing the CA file first" + msg: "Please add a host group 'ca-store' with the host(s) storing the CA file first" run_once: true when: "(not ('ca-store' in groups)) and use_central_ca_host" diff --git a/tasks/sidecar.yml b/tasks/sidecar.yml index 9f3ea5a..a5be537 100644 --- a/tasks/sidecar.yml +++ b/tasks/sidecar.yml @@ -4,6 +4,7 @@ prefix: 'sidecar.' delegate_to: localhost register: sidecar_tmp_dir + run_once: true - name: Add sidecar repo (Debian | Ubuntu) when: ansible_os_family == 'Debian' @@ -60,6 +61,7 @@ state: absent delegate_to: localhost when: sidecar_tmp_dir.path is defined + run_once: true - name: Generate sidecar config ansible.builtin.template: -- GitLab