[ipa/server] Fix AnsibleUnsafeText error

The `-` character was evaluated as subtract operation, this should fix that issue.

Signed-off-by: Michal Konecny <mkonecny@redhat.com>
This commit is contained in:
Michal Konecny 2023-11-29 12:34:53 +01:00
parent 3d47ce35e4
commit f7cb379e43

View file

@ -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: