[ipa/server] Fix the parameters for topologysegment-add
I forgot to use the '--' for the flags and used `hostvars[item]['ansible_hostname']` instead of just item. Signed-off-by: Michal Konecny <mkonecny@redhat.com>
This commit is contained in:
parent
315ff4be8a
commit
f4ebb6d0d7
1 changed files with 6 additions and 6 deletions
|
@ -615,10 +615,10 @@
|
||||||
argv:
|
argv:
|
||||||
- ipa
|
- ipa
|
||||||
- topologysegment-add
|
- topologysegment-add
|
||||||
- leftnode="{{ inventory_hostname }}"
|
- "--leftnode={{ inventory_hostname }}"
|
||||||
- rightnode="{{ hostvars[item]['ansible_hostname'] }}"
|
- "--rightnode={{ item }}"
|
||||||
- "ca"
|
- "ca"
|
||||||
- "{{ inventory_hostname + '-' + hostvars[item]['ansible_hostname'] }}"
|
- "{{ inventory_hostname + '-' + item }}"
|
||||||
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:
|
||||||
|
@ -632,10 +632,10 @@
|
||||||
argv:
|
argv:
|
||||||
- ipa
|
- ipa
|
||||||
- topologysegment-add
|
- topologysegment-add
|
||||||
- leftnode="{{ inventory_hostname }}"
|
- "--leftnode={{ inventory_hostname }}"
|
||||||
- rightnode="{{ hostvars[item]['ansible_hostname'] }}"
|
- "--rightnode={{ item }}"
|
||||||
- "domain"
|
- "domain"
|
||||||
- "{{ inventory_hostname + '-' + hostvars[item]['ansible_hostname'] }}"
|
- "{{ inventory_hostname + '-' + item }}"
|
||||||
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:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue