From 599b86d40b978567bc02830d4e46752ed93221ea Mon Sep 17 00:00:00 2001 From: Fl0w Date: Fri, 29 Dec 2023 11:47:25 +0100 Subject: [PATCH] added missing quotes to ticket delegation --- roles/icinga2/tasks/features/api.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/icinga2/tasks/features/api.yml b/roles/icinga2/tasks/features/api.yml index 0767de69..e4c85da7 100644 --- a/roles/icinga2/tasks/features/api.yml +++ b/roles/icinga2/tasks/features/api.yml @@ -136,7 +136,7 @@ {% if icinga2_ca_host != 'none' %} --cert "{{ icinga2_cert_path }}/{{ icinga2_cert_name }}.crt" {% else %} --csr "{{ icinga2_cert_path }}/{{ icinga2_cert_name }}.csr" {%- endif %} - name: delegate ticket request to master - shell: icinga2 pki ticket --cn "{{ icinga2_cert_name }}{% if icinga2_ticket_salt is defined %} --salt {{ icinga2_ticket_salt }}{% endif %}" + shell: icinga2 pki ticket --cn "{{ icinga2_cert_name }}" {% if icinga2_ticket_salt is defined %} --salt "{{ icinga2_ticket_salt }}"{% endif %} delegate_to: "{{ icinga2_delegate_host | default(icinga2_ca_host) }}" register: icinga2_ticket when: icinga2_ca_host != 'none'