mirror of
https://github.com/freeipa/ansible-freeipa.git
synced 2026-08-02 04:44:42 +00:00
Update CLIENT.md
This commit is contained in:
10
CLIENT.md
10
CLIENT.md
@@ -11,15 +11,18 @@ 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:
|
||||||
|
|
||||||
|
```ini
|
||||||
[ipaclients]
|
[ipaclients]
|
||||||
ipaclient1.example.com
|
ipaclient1.example.com
|
||||||
ipaclient2.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:
|
||||||
|
|
||||||
|
```yaml
|
||||||
- name: Playbook to configure IPA clients with username/password
|
- name: Playbook to configure IPA clients with username/password
|
||||||
hosts: ipaclients
|
hosts: ipaclients
|
||||||
become: true
|
become: true
|
||||||
@@ -29,9 +32,11 @@ Example playbook to setup the IPA client(s) using principal from inventory file
|
|||||||
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:
|
||||||
|
|
||||||
|
```yaml
|
||||||
- name: Playbook to unconfigure IPA clients
|
- name: Playbook to unconfigure IPA clients
|
||||||
hosts: ipaclients
|
hosts: ipaclients
|
||||||
become: true
|
become: true
|
||||||
@@ -39,9 +44,11 @@ Example playbook to unconfigure the IPA client(s) using principal and password f
|
|||||||
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:
|
||||||
|
|
||||||
|
```ini
|
||||||
[ipaclients]
|
[ipaclients]
|
||||||
ipaclient1.example.com
|
ipaclient1.example.com
|
||||||
ipaclient2.example.com
|
ipaclient2.example.com
|
||||||
@@ -53,9 +60,11 @@ Example inventory file with fixed servers, principal, password and domain:
|
|||||||
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:
|
||||||
|
|
||||||
|
```yaml
|
||||||
- name: Playbook to configure IPA clients with username/password
|
- name: Playbook to configure IPA clients with username/password
|
||||||
hosts: ipaclients
|
hosts: ipaclients
|
||||||
become: true
|
become: true
|
||||||
@@ -63,6 +72,7 @@ Example playbook to setup the IPA client(s) using principal and password from in
|
|||||||
roles:
|
roles:
|
||||||
- role: ipaclient
|
- role: ipaclient
|
||||||
state: present
|
state: present
|
||||||
|
```
|
||||||
|
|
||||||
Variables
|
Variables
|
||||||
---------
|
---------
|
||||||
|
|||||||
Reference in New Issue
Block a user