base keytab: try and just use --force here
We made this change for other keytabs, so just do it here too. Signed-off-by: Kevin Fenzi <kevin@scrye.com>
This commit is contained in:
parent
461fbcf0aa
commit
7825d7664b
1 changed files with 2 additions and 2 deletions
|
@ -19,7 +19,7 @@
|
||||||
|
|
||||||
- name: Create host entry
|
- name: Create host entry
|
||||||
delegate_to: "{{ ipa_server }}"
|
delegate_to: "{{ ipa_server }}"
|
||||||
command: ipa host-add {{inventory_hostname}}
|
command: ipa host-add --force {{inventory_hostname}}
|
||||||
register: host_add_result
|
register: host_add_result
|
||||||
changed_when: "'Added host' in host_add_result.stdout"
|
changed_when: "'Added host' in host_add_result.stdout"
|
||||||
failed_when: "not ('Added host' in host_add_result.stdout or 'already exists' in host_add_result.stderr)"
|
failed_when: "not ('Added host' in host_add_result.stdout or 'already exists' in host_add_result.stderr)"
|
||||||
|
@ -31,7 +31,7 @@
|
||||||
|
|
||||||
- name: Create additional host entries
|
- name: Create additional host entries
|
||||||
delegate_to: "{{ ipa_server }}"
|
delegate_to: "{{ ipa_server }}"
|
||||||
command: ipa host-add {{item}}
|
command: ipa host-add --force {{item}}
|
||||||
with_items: "{{ additional_host_keytabs }}"
|
with_items: "{{ additional_host_keytabs }}"
|
||||||
register: hosts_add_result
|
register: hosts_add_result
|
||||||
changed_when: "'Added host' in hosts_add_result.stdout"
|
changed_when: "'Added host' in hosts_add_result.stdout"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue