From 3d200881c47d02aff261293c0d220b1797f4493c Mon Sep 17 00:00:00 2001 From: Michal Konecny Date: Wed, 29 Nov 2023 12:48:56 +0100 Subject: [PATCH] [ipa/server] Explicitly mark '-' as string Previous change split the argument to two, which caused error in number of parameters for the command. Let's try if this will fix it. Signed-off-by: Michal Konecny --- roles/ipa/server/tasks/main.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/roles/ipa/server/tasks/main.yml b/roles/ipa/server/tasks/main.yml index 4f216389b4..429ceb38cc 100644 --- a/roles/ipa/server/tasks/main.yml +++ b/roles/ipa/server/tasks/main.yml @@ -618,7 +618,7 @@ - leftnode="{{ inventory_hostname }}" - rightnode="{{ hostvars[item]['ansible_hostname'] }}" - "ca" - - "{{ inventory_hostname }}-{{ hostvars[item]['ansible_hostname']}}" + - "{{ inventory_hostname'-'hostvars[item]['ansible_hostname'] }}" with_items: "{{ (env == 'production')|ternary(groups['ipa'], groups['ipa_stg']) }}" ignore_errors: true tags: @@ -635,7 +635,7 @@ - leftnode="{{ inventory_hostname }}" - rightnode="{{ hostvars[item]['ansible_hostname'] }}" - "domain" - - "{{ inventory_hostname }}-{{ hostvars[item]['ansible_hostname']}}" + - "{{ inventory_hostname'-'hostvars[item]['ansible_hostname'] }}" with_items: "{{ (env == 'production')|ternary(groups['ipa'], groups['ipa_stg']) }}" ignore_errors: true tags: