ipaclient: Backup and set hostname explicitly

This is needed to use ipaclient in ipareplica for client deployment.
This commit is contained in:
Thomas Woerner
2018-07-19 14:12:45 +02:00
parent e6cd47bcce
commit 695d09aa69
2 changed files with 86 additions and 0 deletions

View File

@@ -131,6 +131,11 @@
failed_when: iparmkeytab.rc != 0 and iparmkeytab.rc != 3 and iparmkeytab.rc != 5
when: ipaclient_use_otp | bool or ipaclient_force_join | bool
- name: Install - Backup and set hostname
ipaclient_set_hostname:
hostname: "{{ ipadiscovery.hostname }}"
when: not ipaclient_on_master | bool
- name: Install - Join IPA
ipajoin:
servers: "{{ ipadiscovery.servers }}"