From 315ff4be8ae33a47a7300e0bc085cd813e6e2a7c Mon Sep 17 00:00:00 2001 From: Michal Konecny Date: Wed, 29 Nov 2023 13:03:19 +0100 Subject: [PATCH] [ipa/server] Concatenate the strings correctly 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 429ceb38cc..55fabea5a2 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: