Skip to content
Snippets Groups Projects
Commit 56fb063b authored by Alexander Käb's avatar Alexander Käb
Browse files

fix: only create a single tmp directory

parent 8c834642
Branches
Tags
No related merge requests found
......@@ -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"
......
......@@ -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:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment