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:
Thomas Woerner
2017-10-13 16:37:10 +02:00
parent 46b5d0f533
commit 8af5a26873

View File

@@ -62,7 +62,7 @@
principal: "{{ ipaadmin_principal | default('admin') }}"
password: "{{ ipaadmin_password | default(omit) }}"
keytab: "{{ ipaadmin_keytab | default(omit) }}"
fqdn: "{{ ansible_fqdn }}"
fqdn: "{{ ipadiscovery.hostname }}"
lifetime: "{{ ipaclient_lifetime | default(omit) }}"
random: True
register: ipahost_output