diff --git a/tasks/main.yml b/tasks/main.yml index 8f6330f7ab9fd51c87e29fb966989dbb387a5956..e9f30e6e66947c76455983b19eb78163914b133a 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 9f3ea5a83635a8720193baf1cac4a2461c3b1482..a5be537f964dbe7996db902204879b5d6d40c309 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: