Add a role for ipa clients and use it in Ipsilon
Signed-off-by: Aurélien Bompard <aurelien@bompard.org>
This commit is contained in:
parent
3ae9b4bd65
commit
ba82363e78
2 changed files with 11 additions and 0 deletions
10
roles/ipa/client/tasks/main.yml
Normal file
10
roles/ipa/client/tasks/main.yml
Normal file
|
@ -0,0 +1,10 @@
|
|||
- name: Enroll system as IPA client
|
||||
command:
|
||||
cmd: ipa-client-install
|
||||
--hostname={{ ansible_fqdn }}
|
||||
--domain={{ ipa_realm | lower }}
|
||||
--realm={{ ipa_realm }}
|
||||
--server={{ ipa_server }}
|
||||
-p admin -w {{ ipa_admin_password }}
|
||||
-U -N --force-join
|
||||
creates: /etc/ipa/default.conf
|
|
@ -121,6 +121,7 @@
|
|||
tags:
|
||||
- ipsilon
|
||||
|
||||
- include_role: ipa/client
|
||||
|
||||
- name: Get admin ticket
|
||||
shell: echo "{{ipa_admin_password}}" | kinit admin
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue