mirror of
https://github.com/freeipa/ansible-freeipa.git
synced 2026-07-31 11:54:47 +00:00
Update CLIENT.md
This commit is contained in:
78
CLIENT.md
78
CLIENT.md
@@ -11,58 +11,68 @@ Usage
|
|||||||
|
|
||||||
Example inventory file with fixed principal using auto-discovery with DNS records:
|
Example inventory file with fixed principal using auto-discovery with DNS records:
|
||||||
|
|
||||||
[ipaclients]
|
```ini
|
||||||
ipaclient1.example.com
|
[ipaclients]
|
||||||
ipaclient2.example.com
|
ipaclient1.example.com
|
||||||
|
ipaclient2.example.com
|
||||||
|
|
||||||
[ipaclients:vars]
|
[ipaclients:vars]
|
||||||
ipaadmin_principal=admin
|
ipaadmin_principal=admin
|
||||||
|
```
|
||||||
|
|
||||||
Example playbook to setup the IPA client(s) using principal from inventory file and password from an [Ansible Vault](http://docs.ansible.com/ansible/latest/playbooks_vault.html) file:
|
Example playbook to setup the IPA client(s) using principal from inventory file and password from an [Ansible Vault](http://docs.ansible.com/ansible/latest/playbooks_vault.html) file:
|
||||||
|
|
||||||
- name: Playbook to configure IPA clients with username/password
|
```yaml
|
||||||
hosts: ipaclients
|
- name: Playbook to configure IPA clients with username/password
|
||||||
become: true
|
hosts: ipaclients
|
||||||
vars_files:
|
become: true
|
||||||
- playbook_sensitive_data.yml
|
vars_files:
|
||||||
|
- playbook_sensitive_data.yml
|
||||||
|
|
||||||
roles:
|
roles:
|
||||||
- role: ipaclient
|
- role: ipaclient
|
||||||
state: present
|
state: present
|
||||||
|
```
|
||||||
|
|
||||||
Example playbook to unconfigure the IPA client(s) using principal and password from inventory file:
|
Example playbook to unconfigure the IPA client(s) using principal and password from inventory file:
|
||||||
|
|
||||||
- name: Playbook to unconfigure IPA clients
|
```yaml
|
||||||
hosts: ipaclients
|
- name: Playbook to unconfigure IPA clients
|
||||||
become: true
|
hosts: ipaclients
|
||||||
|
become: true
|
||||||
|
|
||||||
roles:
|
roles:
|
||||||
- role: ipaclient
|
- role: ipaclient
|
||||||
state: absent
|
state: absent
|
||||||
|
```
|
||||||
|
|
||||||
Example inventory file with fixed servers, principal, password and domain:
|
Example inventory file with fixed servers, principal, password and domain:
|
||||||
|
|
||||||
[ipaclients]
|
```ini
|
||||||
ipaclient1.example.com
|
[ipaclients]
|
||||||
ipaclient2.example.com
|
ipaclient1.example.com
|
||||||
|
ipaclient2.example.com
|
||||||
|
|
||||||
[ipaservers]
|
[ipaservers]
|
||||||
ipaserver.example.com
|
ipaserver.example.com
|
||||||
|
|
||||||
[ipaclients:vars]
|
[ipaclients:vars]
|
||||||
ipaclient_domain=example.com
|
ipaclient_domain=example.com
|
||||||
ipaadmin_principal=admin
|
ipaadmin_principal=admin
|
||||||
ipaadmin_password=MySecretPassword123
|
ipaadmin_password=MySecretPassword123
|
||||||
|
```
|
||||||
|
|
||||||
Example playbook to setup the IPA client(s) using principal and password from inventory file:
|
Example playbook to setup the IPA client(s) using principal and password from inventory file:
|
||||||
|
|
||||||
- name: Playbook to configure IPA clients with username/password
|
```yaml
|
||||||
hosts: ipaclients
|
- name: Playbook to configure IPA clients with username/password
|
||||||
become: true
|
hosts: ipaclients
|
||||||
|
become: true
|
||||||
|
|
||||||
roles:
|
roles:
|
||||||
- role: ipaclient
|
- role: ipaclient
|
||||||
state: present
|
state: present
|
||||||
|
```
|
||||||
|
|
||||||
Variables
|
Variables
|
||||||
---------
|
---------
|
||||||
|
|||||||
Reference in New Issue
Block a user