mirror of
https://github.com/freeipa/ansible-freeipa.git
synced 2026-07-29 19:04:42 +00:00
Ansible for IPA
This commit is contained in:
19
site.yml
Normal file
19
site.yml
Normal file
@@ -0,0 +1,19 @@
|
||||
---
|
||||
- name: Playbook to install IPA clients
|
||||
hosts: ipaclients
|
||||
become: true
|
||||
|
||||
pre_tasks:
|
||||
|
||||
- name: For OTP client registration, add client and get OTP
|
||||
ipahost:
|
||||
keytab: files/admin.keytab
|
||||
fqdn: "{{ ansible_fqdn }}"
|
||||
random: True
|
||||
register: ipahost
|
||||
delegate_to: "{{ groups.ipaservers[0] }}"
|
||||
|
||||
roles:
|
||||
- role: ipaclient
|
||||
state: present
|
||||
ipaclient_otp: "{{ ipahost.host.randompassword }}"
|
||||
Reference in New Issue
Block a user