mirror of
https://github.com/freeipa/ansible-freeipa.git
synced 2026-03-26 21:33:05 +00:00
Add example client and cluster playbooks and also cluster inventory file
This commit is contained in:
8
install-client.yml
Normal file
8
install-client.yml
Normal file
@@ -0,0 +1,8 @@
|
||||
---
|
||||
- name: Playbook to configure IPA clients with username/password
|
||||
hosts: ipaclients
|
||||
become: true
|
||||
|
||||
roles:
|
||||
- role: ipaclient
|
||||
state: present
|
||||
24
install-cluster.yml
Normal file
24
install-cluster.yml
Normal file
@@ -0,0 +1,24 @@
|
||||
---
|
||||
- name: Install IPA servers
|
||||
hosts: ipaserver
|
||||
become: true
|
||||
|
||||
roles:
|
||||
- role: ipaserver
|
||||
state: present
|
||||
|
||||
- name: Install IPA replicas
|
||||
hosts: ipareplicas
|
||||
become: true
|
||||
|
||||
roles:
|
||||
- role: ipareplica
|
||||
state: present
|
||||
|
||||
- name: Install IPA clients
|
||||
hosts: ipaclients
|
||||
become: true
|
||||
|
||||
roles:
|
||||
- role: ipaclient
|
||||
state: present
|
||||
35
inventory/hosts.cluster
Normal file
35
inventory/hosts.cluster
Normal file
@@ -0,0 +1,35 @@
|
||||
[ipaserver]
|
||||
ipaserver.test.local
|
||||
|
||||
[ipaserver:vars]
|
||||
#ipaserver_setup_dns=yes
|
||||
#ipaserver_auto_forwarders=yes
|
||||
#ipaserver_no_firewalld=no
|
||||
|
||||
|
||||
[ipareplicas]
|
||||
ipareplica1.test.local
|
||||
|
||||
[ipareplicas:vars]
|
||||
ipaclient_force_join=yes
|
||||
|
||||
|
||||
[ipaclients]
|
||||
ipaclient1.test.local
|
||||
ipaclient2.test.local
|
||||
|
||||
[ipaclients:vars]
|
||||
#ipaclient_use_otp=yes
|
||||
ipaclient_allow_repair=yes
|
||||
|
||||
|
||||
[ipa:children]
|
||||
ipaserver
|
||||
ipareplicas
|
||||
ipaclients
|
||||
|
||||
[ipa:vars]
|
||||
ipaadmin_password=password1
|
||||
ipadm_password=password1
|
||||
ipaserver_domain=test.local
|
||||
ipaserver_realm=TEST.LOCAL
|
||||
8
uninstall-client.yml
Normal file
8
uninstall-client.yml
Normal file
@@ -0,0 +1,8 @@
|
||||
---
|
||||
- name: Playbook to unconfigure IPA clients
|
||||
hosts: ipaclients
|
||||
become: true
|
||||
|
||||
roles:
|
||||
- role: ipaclient
|
||||
state: absent
|
||||
24
uninstall-cluster.yml
Normal file
24
uninstall-cluster.yml
Normal file
@@ -0,0 +1,24 @@
|
||||
---
|
||||
- name: Uninstall IPA clients
|
||||
hosts: ipaclients
|
||||
become: true
|
||||
|
||||
roles:
|
||||
- role: ipaclient
|
||||
state: absent
|
||||
|
||||
- name: Uninstall IPA replicas
|
||||
hosts: ipareplicas
|
||||
become: true
|
||||
|
||||
roles:
|
||||
- role: ipareplica
|
||||
state: absent
|
||||
|
||||
- name: Uninstall IPA servers
|
||||
hosts: ipaserver
|
||||
become: true
|
||||
|
||||
roles:
|
||||
- role: ipaserver
|
||||
state: absent
|
||||
Reference in New Issue
Block a user