Fix and improve IPA client enrollment

- Ensure the `freeipa-client` package is installed
- Configure systems to create home directories on the fly
- Tag enrollment task

Signed-off-by: Nils Philippsen <nils@redhat.com>
This commit is contained in:
Nils Philippsen 2020-12-22 13:59:46 +01:00 committed by kevin
parent d530dfb078
commit 0f892f559b

View file

@ -1,3 +1,12 @@
- name: Install IPA client packages
package:
name:
- freeipa-client
state: present
tags:
- ipa/client
- packages
- name: Enroll system as IPA client
command:
cmd: ipa-client-install
@ -7,4 +16,8 @@
--server={{ ipa_server }}
-p admin -w {{ ipa_admin_password }}
-U -N --force-join
--mkhomedir
creates: /etc/ipa/default.conf
tags:
- ipa/client
- config