Skip to content
Snippets Groups Projects
Commit 86323feb authored by Thomas Woerner's avatar Thomas Woerner
Browse files

roles/ipaclient/tasks/install.yml: Allow to specify different hostname

ipaclient_hostname needs to be specified in the inventory file for the hosts
where the name needs to get changed.

Example:
192.168.1.1 ipaclient_hostname=ipaclient1.mine.local

The option should not be specified in [ipaclients:vars] as all hosts would
get the same name.
parent bb603fbd
No related branches found
No related tags found
No related merge requests found
......@@ -16,7 +16,7 @@
domain: "{{ ipaclient_domain | default(omit) }}"
servers: "{{ groups.ipaservers | default(omit) }}"
realm: "{{ ipaclient_realm | default(omit) }}"
hostname: "{{ ansible_fqdn }}"
hostname: "{{ ipaclient_hostname | default(ansible_fqdn) }}"
#ca_cert_file: "{{ ipaclient_ca_cert_file | default(omit) }}"
check: yes
register: ipadiscovery
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment