[ipa/server] Concatenate the strings correctly

Signed-off-by: Michal Konecny <mkonecny@redhat.com>
This commit is contained in:
Michal Konecny 2023-11-29 13:03:19 +01:00
parent 3d200881c4
commit 315ff4be8a

View file

@ -618,7 +618,7 @@
- leftnode="{{ inventory_hostname }}" - leftnode="{{ inventory_hostname }}"
- rightnode="{{ hostvars[item]['ansible_hostname'] }}" - rightnode="{{ hostvars[item]['ansible_hostname'] }}"
- "ca" - "ca"
- "{{ inventory_hostname'-'hostvars[item]['ansible_hostname'] }}" - "{{ inventory_hostname + '-' + hostvars[item]['ansible_hostname'] }}"
with_items: "{{ (env == 'production')|ternary(groups['ipa'], groups['ipa_stg']) }}" with_items: "{{ (env == 'production')|ternary(groups['ipa'], groups['ipa_stg']) }}"
ignore_errors: true ignore_errors: true
tags: tags:
@ -635,7 +635,7 @@
- leftnode="{{ inventory_hostname }}" - leftnode="{{ inventory_hostname }}"
- rightnode="{{ hostvars[item]['ansible_hostname'] }}" - rightnode="{{ hostvars[item]['ansible_hostname'] }}"
- "domain" - "domain"
- "{{ inventory_hostname'-'hostvars[item]['ansible_hostname'] }}" - "{{ inventory_hostname + '-' + hostvars[item]['ansible_hostname'] }}"
with_items: "{{ (env == 'production')|ternary(groups['ipa'], groups['ipa_stg']) }}" with_items: "{{ (env == 'production')|ternary(groups['ipa'], groups['ipa_stg']) }}"
ignore_errors: true ignore_errors: true
tags: tags: