mirror of
https://github.com/freeipa/ansible-freeipa.git
synced 2026-05-14 13:32:10 +00:00
roles/ipaclient/tasks/install.yml: Use ipadiscovery.hostname for ipahost
The use of ansible_fqdn could result in a failure if DNS hostname and IP do not match.
This commit is contained in:
@@ -62,7 +62,7 @@
|
|||||||
principal: "{{ ipaadmin_principal | default('admin') }}"
|
principal: "{{ ipaadmin_principal | default('admin') }}"
|
||||||
password: "{{ ipaadmin_password | default(omit) }}"
|
password: "{{ ipaadmin_password | default(omit) }}"
|
||||||
keytab: "{{ ipaadmin_keytab | default(omit) }}"
|
keytab: "{{ ipaadmin_keytab | default(omit) }}"
|
||||||
fqdn: "{{ ansible_fqdn }}"
|
fqdn: "{{ ipadiscovery.hostname }}"
|
||||||
lifetime: "{{ ipaclient_lifetime | default(omit) }}"
|
lifetime: "{{ ipaclient_lifetime | default(omit) }}"
|
||||||
random: True
|
random: True
|
||||||
register: ipahost_output
|
register: ipahost_output
|
||||||
|
|||||||
Reference in New Issue
Block a user