mirror of
https://github.com/freeipa/ansible-freeipa.git
synced 2026-07-30 19:34:45 +00:00
READMES: Unite admin password
Use SomeADMINpassword as the admin password everywhere, also in the README files.
This commit is contained in:
@@ -52,20 +52,20 @@ Example playbook to add groups:
|
|||||||
tasks:
|
tasks:
|
||||||
# Create group ops with gid 1234
|
# Create group ops with gid 1234
|
||||||
- ipagroup:
|
- ipagroup:
|
||||||
ipaadmin_password: MyPassword123
|
ipaadmin_password: SomeADMINpassword
|
||||||
name: ops
|
name: ops
|
||||||
gidnumber: 1234
|
gidnumber: 1234
|
||||||
|
|
||||||
# Create group sysops
|
# Create group sysops
|
||||||
- ipagroup:
|
- ipagroup:
|
||||||
ipaadmin_password: MyPassword123
|
ipaadmin_password: SomeADMINpassword
|
||||||
name: sysops
|
name: sysops
|
||||||
user:
|
user:
|
||||||
- pinky
|
- pinky
|
||||||
|
|
||||||
# Create group appops
|
# Create group appops
|
||||||
- ipagroup:
|
- ipagroup:
|
||||||
ipaadmin_password: MyPassword123
|
ipaadmin_password: SomeADMINpassword
|
||||||
name: appops
|
name: appops
|
||||||
```
|
```
|
||||||
|
|
||||||
@@ -80,7 +80,7 @@ Example playbook to add users to a group:
|
|||||||
tasks:
|
tasks:
|
||||||
# Add user member brain to group sysops
|
# Add user member brain to group sysops
|
||||||
- ipagroup:
|
- ipagroup:
|
||||||
ipaadmin_password: MyPassword123
|
ipaadmin_password: SomeADMINpassword
|
||||||
name: sysops
|
name: sysops
|
||||||
action: member
|
action: member
|
||||||
user:
|
user:
|
||||||
@@ -100,7 +100,7 @@ Example playbook to add group members to a group:
|
|||||||
tasks:
|
tasks:
|
||||||
# Add group members sysops and appops to group sysops
|
# Add group members sysops and appops to group sysops
|
||||||
- ipagroup:
|
- ipagroup:
|
||||||
ipaadmin_password: MyPassword123
|
ipaadmin_password: SomeADMINpassword
|
||||||
name: ops
|
name: ops
|
||||||
group:
|
group:
|
||||||
- sysops
|
- sysops
|
||||||
@@ -118,7 +118,7 @@ Example playbook to remove groups:
|
|||||||
tasks:
|
tasks:
|
||||||
# Remove goups sysops, appops and ops
|
# Remove goups sysops, appops and ops
|
||||||
- ipagroup:
|
- ipagroup:
|
||||||
ipaadmin_password: MyPassword123
|
ipaadmin_password: SomeADMINpassword
|
||||||
name: sysops,appops,ops
|
name: sysops,appops,ops
|
||||||
state: absent
|
state: absent
|
||||||
```
|
```
|
||||||
|
|||||||
@@ -50,7 +50,7 @@ Example playbook to make sure HBAC Rule login exists:
|
|||||||
tasks:
|
tasks:
|
||||||
# Ensure HBAC Rule login is present
|
# Ensure HBAC Rule login is present
|
||||||
- ipahbacrule:
|
- ipahbacrule:
|
||||||
ipaadmin_password: MyPassword123
|
ipaadmin_password: SomeADMINpassword
|
||||||
name: login
|
name: login
|
||||||
```
|
```
|
||||||
|
|
||||||
@@ -66,7 +66,7 @@ Example playbook to make sure HBAC Rule login exists with the only HBAC Service
|
|||||||
tasks:
|
tasks:
|
||||||
# Ensure HBAC Rule login is present with the only HBAC Service sshd
|
# Ensure HBAC Rule login is present with the only HBAC Service sshd
|
||||||
- ipahbacrule:
|
- ipahbacrule:
|
||||||
ipaadmin_password: MyPassword123
|
ipaadmin_password: SomeADMINpassword
|
||||||
name: login
|
name: login
|
||||||
hbacsvc:
|
hbacsvc:
|
||||||
- sshd
|
- sshd
|
||||||
@@ -83,7 +83,7 @@ Example playbook to make sure HBAC Service sshd is present in HBAC Rule login:
|
|||||||
tasks:
|
tasks:
|
||||||
# Ensure HBAC Service sshd is present in HBAC Rule login
|
# Ensure HBAC Service sshd is present in HBAC Rule login
|
||||||
- ipahbacrule:
|
- ipahbacrule:
|
||||||
ipaadmin_password: MyPassword123
|
ipaadmin_password: SomeADMINpassword
|
||||||
name: login
|
name: login
|
||||||
hbacsvc:
|
hbacsvc:
|
||||||
- sshd
|
- sshd
|
||||||
@@ -101,7 +101,7 @@ Example playbook to make sure HBAC Service sshd is absent in HBAC Rule login:
|
|||||||
tasks:
|
tasks:
|
||||||
# Ensure HBAC Service sshd is present in HBAC Rule login
|
# Ensure HBAC Service sshd is present in HBAC Rule login
|
||||||
- ipahbacrule:
|
- ipahbacrule:
|
||||||
ipaadmin_password: MyPassword123
|
ipaadmin_password: SomeADMINpassword
|
||||||
name: login
|
name: login
|
||||||
hbacsvc:
|
hbacsvc:
|
||||||
- sshd
|
- sshd
|
||||||
@@ -120,7 +120,7 @@ Example playbook to make sure HBAC Rule login is absent:
|
|||||||
tasks:
|
tasks:
|
||||||
# Ensure HBAC Rule login is present
|
# Ensure HBAC Rule login is present
|
||||||
- ipahbacrule:
|
- ipahbacrule:
|
||||||
ipaadmin_password: MyPassword123
|
ipaadmin_password: SomeADMINpassword
|
||||||
name: login
|
name: login
|
||||||
state: absent
|
state: absent
|
||||||
```
|
```
|
||||||
|
|||||||
@@ -50,7 +50,7 @@ Example playbook to make sure HBAC Service for http is present
|
|||||||
tasks:
|
tasks:
|
||||||
# Ensure HBAC Service for http is present
|
# Ensure HBAC Service for http is present
|
||||||
- ipahbacsvc:
|
- ipahbacsvc:
|
||||||
ipaadmin_password: MyPassword123
|
ipaadmin_password: SomeADMINpassword
|
||||||
name: http
|
name: http
|
||||||
description: Web service
|
description: Web service
|
||||||
```
|
```
|
||||||
@@ -66,7 +66,7 @@ Example playbook to make sure HBAC Service for tftp is present
|
|||||||
tasks:
|
tasks:
|
||||||
# Ensure HBAC Service for tftp is present
|
# Ensure HBAC Service for tftp is present
|
||||||
- ipahbacsvc:
|
- ipahbacsvc:
|
||||||
ipaadmin_password: MyPassword123
|
ipaadmin_password: SomeADMINpassword
|
||||||
name: tftp
|
name: tftp
|
||||||
description: TFTPWeb service
|
description: TFTPWeb service
|
||||||
```
|
```
|
||||||
@@ -82,7 +82,7 @@ Example playbook to make sure HBAC Services for http and tftp are absent
|
|||||||
tasks:
|
tasks:
|
||||||
# Ensure HBAC Service for http and tftp are absent
|
# Ensure HBAC Service for http and tftp are absent
|
||||||
- ipahbacsvc:
|
- ipahbacsvc:
|
||||||
ipaadmin_password: MyPassword123
|
ipaadmin_password: SomeADMINpassword
|
||||||
name: http,tftp
|
name: http,tftp
|
||||||
state: absent
|
state: absent
|
||||||
```
|
```
|
||||||
|
|||||||
@@ -50,7 +50,7 @@ Example playbook to make sure HBAC Service Group login exists:
|
|||||||
tasks:
|
tasks:
|
||||||
# Ensure HBAC Service Group login is present
|
# Ensure HBAC Service Group login is present
|
||||||
- ipahbacsvcgroup:
|
- ipahbacsvcgroup:
|
||||||
ipaadmin_password: MyPassword123
|
ipaadmin_password: SomeADMINpassword
|
||||||
name: login
|
name: login
|
||||||
```
|
```
|
||||||
|
|
||||||
@@ -66,7 +66,7 @@ Example playbook to make sure HBAC Service Group login exists with the only HBAC
|
|||||||
tasks:
|
tasks:
|
||||||
# Ensure HBAC Service Group login is present with the only HBAC Service sshd
|
# Ensure HBAC Service Group login is present with the only HBAC Service sshd
|
||||||
- ipahbacsvcgroup:
|
- ipahbacsvcgroup:
|
||||||
ipaadmin_password: MyPassword123
|
ipaadmin_password: SomeADMINpassword
|
||||||
name: login
|
name: login
|
||||||
hbacsvc:
|
hbacsvc:
|
||||||
- sshd
|
- sshd
|
||||||
@@ -83,7 +83,7 @@ Example playbook to make sure HBAC Service sshd is present in HBAC Service Group
|
|||||||
tasks:
|
tasks:
|
||||||
# Ensure HBAC Service sshd is present in HBAC Service Group login
|
# Ensure HBAC Service sshd is present in HBAC Service Group login
|
||||||
- ipahbacsvcgroup:
|
- ipahbacsvcgroup:
|
||||||
ipaadmin_password: MyPassword123
|
ipaadmin_password: SomeADMINpassword
|
||||||
name: login
|
name: login
|
||||||
hbacsvc:
|
hbacsvc:
|
||||||
- sshd
|
- sshd
|
||||||
@@ -101,7 +101,7 @@ Example playbook to make sure HBAC Service sshd is absent in HBAC Service Group
|
|||||||
tasks:
|
tasks:
|
||||||
# Ensure HBAC Service sshd is present in HBAC Service Group login
|
# Ensure HBAC Service sshd is present in HBAC Service Group login
|
||||||
- ipahbacsvcgroup:
|
- ipahbacsvcgroup:
|
||||||
ipaadmin_password: MyPassword123
|
ipaadmin_password: SomeADMINpassword
|
||||||
name: login
|
name: login
|
||||||
hbacsvc:
|
hbacsvc:
|
||||||
- sshd
|
- sshd
|
||||||
@@ -120,7 +120,7 @@ Example playbook to make sure HBAC Service Group login is absent:
|
|||||||
tasks:
|
tasks:
|
||||||
# Ensure HBAC Service Group login is present
|
# Ensure HBAC Service Group login is present
|
||||||
- ipahbacsvcgroup:
|
- ipahbacsvcgroup:
|
||||||
ipaadmin_password: MyPassword123
|
ipaadmin_password: SomeADMINpassword
|
||||||
name: login
|
name: login
|
||||||
state: absent
|
state: absent
|
||||||
```
|
```
|
||||||
|
|||||||
@@ -52,7 +52,7 @@ Example playbook to ensure host presence:
|
|||||||
tasks:
|
tasks:
|
||||||
# Ensure host is present
|
# Ensure host is present
|
||||||
- ipahost:
|
- ipahost:
|
||||||
ipaadmin_password: MyPassword123
|
ipaadmin_password: SomeADMINpassword
|
||||||
name: host01.example.com
|
name: host01.example.com
|
||||||
description: Example host
|
description: Example host
|
||||||
ip_address: 192.168.0.123
|
ip_address: 192.168.0.123
|
||||||
@@ -79,7 +79,7 @@ Example playbook to ensure host presence with several IP addresses:
|
|||||||
tasks:
|
tasks:
|
||||||
# Ensure host is present
|
# Ensure host is present
|
||||||
- ipahost:
|
- ipahost:
|
||||||
ipaadmin_password: MyPassword123
|
ipaadmin_password: SomeADMINpassword
|
||||||
name: host01.example.com
|
name: host01.example.com
|
||||||
description: Example host
|
description: Example host
|
||||||
ip_address:
|
ip_address:
|
||||||
@@ -109,7 +109,7 @@ Example playbook to ensure IP addresses are present for a host:
|
|||||||
tasks:
|
tasks:
|
||||||
# Ensure host is present
|
# Ensure host is present
|
||||||
- ipahost:
|
- ipahost:
|
||||||
ipaadmin_password: MyPassword123
|
ipaadmin_password: SomeADMINpassword
|
||||||
name: host01.example.com
|
name: host01.example.com
|
||||||
ip_address:
|
ip_address:
|
||||||
- 192.168.0.124
|
- 192.168.0.124
|
||||||
@@ -130,7 +130,7 @@ Example playbook to ensure IP addresses are absent for a host:
|
|||||||
tasks:
|
tasks:
|
||||||
# Ensure host is present
|
# Ensure host is present
|
||||||
- ipahost:
|
- ipahost:
|
||||||
ipaadmin_password: MyPassword123
|
ipaadmin_password: SomeADMINpassword
|
||||||
name: host01.example.com
|
name: host01.example.com
|
||||||
ip_address:
|
ip_address:
|
||||||
- 192.168.0.124
|
- 192.168.0.124
|
||||||
@@ -151,7 +151,7 @@ Example playbook to ensure host presence without DNS:
|
|||||||
tasks:
|
tasks:
|
||||||
# Ensure host is present without DNS
|
# Ensure host is present without DNS
|
||||||
- ipahost:
|
- ipahost:
|
||||||
ipaadmin_password: MyPassword123
|
ipaadmin_password: SomeADMINpassword
|
||||||
name: host02.example.com
|
name: host02.example.com
|
||||||
description: Example host
|
description: Example host
|
||||||
force: yes
|
force: yes
|
||||||
@@ -169,7 +169,7 @@ Example playbook to ensure host presence with a random password:
|
|||||||
tasks:
|
tasks:
|
||||||
- name: Host host01.example.com present with random password
|
- name: Host host01.example.com present with random password
|
||||||
ipahost:
|
ipahost:
|
||||||
ipaadmin_password: MyPassword123
|
ipaadmin_password: SomeADMINpassword
|
||||||
name: host01.example.com
|
name: host01.example.com
|
||||||
random: yes
|
random: yes
|
||||||
force: yes
|
force: yes
|
||||||
@@ -193,7 +193,7 @@ Example playbook to ensure presence of several hosts with a random password:
|
|||||||
tasks:
|
tasks:
|
||||||
- name: Hosts host01.example.com and host01.example.com present with random passwords
|
- name: Hosts host01.example.com and host01.example.com present with random passwords
|
||||||
ipahost:
|
ipahost:
|
||||||
ipaadmin_password: MyPassword123
|
ipaadmin_password: SomeADMINpassword
|
||||||
hosts:
|
hosts:
|
||||||
- name: host01.example.com
|
- name: host01.example.com
|
||||||
random: yes
|
random: yes
|
||||||
@@ -225,7 +225,7 @@ Example playbook to ensure presence of host member principal:
|
|||||||
tasks:
|
tasks:
|
||||||
- name: Host host01.example.com present with principals host/testhost01.example.com and host/myhost01.example.com
|
- name: Host host01.example.com present with principals host/testhost01.example.com and host/myhost01.example.com
|
||||||
ipahost:
|
ipahost:
|
||||||
ipaadmin_password: MyPassword123
|
ipaadmin_password: SomeADMINpassword
|
||||||
name: host01.example.com
|
name: host01.example.com
|
||||||
principal:
|
principal:
|
||||||
- host/testhost01.example.com
|
- host/testhost01.example.com
|
||||||
@@ -244,7 +244,7 @@ Example playbook to ensure presence of host member certificate:
|
|||||||
tasks:
|
tasks:
|
||||||
- name: Host host01.example.com present with certificate
|
- name: Host host01.example.com present with certificate
|
||||||
ipahost:
|
ipahost:
|
||||||
ipaadmin_password: MyPassword123
|
ipaadmin_password: SomeADMINpassword
|
||||||
name: host01.example.com
|
name: host01.example.com
|
||||||
certificate:
|
certificate:
|
||||||
- MIIC/zCCAeegAwIBAg...
|
- MIIC/zCCAeegAwIBAg...
|
||||||
@@ -262,7 +262,7 @@ Example playbook to ensure presence of member managedby_host for serveral hosts:
|
|||||||
|
|
||||||
tasks:
|
tasks:
|
||||||
ipahost:
|
ipahost:
|
||||||
ipaadmin_password: MyPassword123
|
ipaadmin_password: SomeADMINpassword
|
||||||
hosts:
|
hosts:
|
||||||
- name: host01.exmaple.com
|
- name: host01.exmaple.com
|
||||||
managedby_host: server.exmaple.com
|
managedby_host: server.exmaple.com
|
||||||
@@ -283,7 +283,7 @@ Example playbook to disable a host:
|
|||||||
tasks:
|
tasks:
|
||||||
# Ensure host is disabled
|
# Ensure host is disabled
|
||||||
- ipahost:
|
- ipahost:
|
||||||
ipaadmin_password: MyPassword123
|
ipaadmin_password: SomeADMINpassword
|
||||||
name: host01.example.com
|
name: host01.example.com
|
||||||
update_dns: yes
|
update_dns: yes
|
||||||
state: disabled
|
state: disabled
|
||||||
|
|||||||
@@ -52,7 +52,7 @@ Example playbook to make sure hostgroup databases exists:
|
|||||||
tasks:
|
tasks:
|
||||||
# Ensure host-group databases is present
|
# Ensure host-group databases is present
|
||||||
- ipahostgroup:
|
- ipahostgroup:
|
||||||
ipaadmin_password: MyPassword123
|
ipaadmin_password: SomeADMINpassword
|
||||||
name: databases
|
name: databases
|
||||||
host:
|
host:
|
||||||
- db.example.com
|
- db.example.com
|
||||||
@@ -72,7 +72,7 @@ Example playbook to make sure that hosts and hostgroups are present in existing
|
|||||||
tasks:
|
tasks:
|
||||||
# Ensure hosts and hostgroups are present in existing databases hostgroup
|
# Ensure hosts and hostgroups are present in existing databases hostgroup
|
||||||
- ipahostgroup:
|
- ipahostgroup:
|
||||||
ipaadmin_password: MyPassword123
|
ipaadmin_password: SomeADMINpassword
|
||||||
name: databases
|
name: databases
|
||||||
host:
|
host:
|
||||||
- db.example.com
|
- db.example.com
|
||||||
@@ -94,7 +94,7 @@ Example playbook to make sure hosts and hostgroups are absent in databases hostg
|
|||||||
tasks:
|
tasks:
|
||||||
# Ensure hosts and hostgroups are absent in databases hostgroup
|
# Ensure hosts and hostgroups are absent in databases hostgroup
|
||||||
- ipahostgroup:
|
- ipahostgroup:
|
||||||
ipaadmin_password: MyPassword123
|
ipaadmin_password: SomeADMINpassword
|
||||||
name: databases
|
name: databases
|
||||||
host:
|
host:
|
||||||
- db.example.com
|
- db.example.com
|
||||||
@@ -116,7 +116,7 @@ Example playbook to make sure host-group databases is absent:
|
|||||||
tasks:
|
tasks:
|
||||||
# Ensure host-group databases is absent
|
# Ensure host-group databases is absent
|
||||||
- ipahostgroup:
|
- ipahostgroup:
|
||||||
ipaadmin_password: MyPassword123
|
ipaadmin_password: SomeADMINpassword
|
||||||
name: databases
|
name: databases
|
||||||
state: absent
|
state: absent
|
||||||
```
|
```
|
||||||
|
|||||||
@@ -45,7 +45,7 @@ Example playbook to ensure presence of pwpolicies for exisiting group ops:
|
|||||||
tasks:
|
tasks:
|
||||||
- name: Ensure presence of pwpolicies for group ops
|
- name: Ensure presence of pwpolicies for group ops
|
||||||
ipapwpolicy:
|
ipapwpolicy:
|
||||||
ipaadmin_password: MyPassword123
|
ipaadmin_password: SomeADMINpassword
|
||||||
name: ops
|
name: ops
|
||||||
minlife: 7
|
minlife: 7
|
||||||
maxlife: 49
|
maxlife: 49
|
||||||
@@ -67,7 +67,7 @@ Example playbook to ensure absence of pwpolicies for group ops:
|
|||||||
tasks:
|
tasks:
|
||||||
# Ensure absence of pwpolicies for group ops
|
# Ensure absence of pwpolicies for group ops
|
||||||
- ipapwpolicy:
|
- ipapwpolicy:
|
||||||
ipaadmin_password: MyPassword123
|
ipaadmin_password: SomeADMINpassword
|
||||||
name: ops
|
name: ops
|
||||||
state: absent
|
state: absent
|
||||||
```
|
```
|
||||||
@@ -83,7 +83,7 @@ Example playbook to ensure maxlife is set to 49 in global policy:
|
|||||||
tasks:
|
tasks:
|
||||||
# Ensure absence of pwpolicies for group ops
|
# Ensure absence of pwpolicies for group ops
|
||||||
- ipapwpolicy:
|
- ipapwpolicy:
|
||||||
ipaadmin_password: MyPassword123
|
ipaadmin_password: SomeADMINpassword
|
||||||
maxlife: 49
|
maxlife: 49
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|||||||
@@ -52,7 +52,7 @@ Example playbook to make sure sudocmd exists:
|
|||||||
tasks:
|
tasks:
|
||||||
# Ensure sudocmd is present
|
# Ensure sudocmd is present
|
||||||
- ipasudocmd:
|
- ipasudocmd:
|
||||||
ipaadmin_password: MyPassword123
|
ipaadmin_password: SomeADMINpassword
|
||||||
name: /usr/bin/su
|
name: /usr/bin/su
|
||||||
state: present
|
state: present
|
||||||
```
|
```
|
||||||
@@ -68,7 +68,7 @@ Example playbook to make sure sudocmd is absent:
|
|||||||
tasks:
|
tasks:
|
||||||
# Ensure sudocmd are absent
|
# Ensure sudocmd are absent
|
||||||
- ipahostgroup:
|
- ipahostgroup:
|
||||||
ipaadmin_password: MyPassword123
|
ipaadmin_password: SomeADMINpassword
|
||||||
name: /usr/bin/su
|
name: /usr/bin/su
|
||||||
state: absent
|
state: absent
|
||||||
```
|
```
|
||||||
|
|||||||
@@ -52,7 +52,7 @@ Example playbook to make sure sudocmdgroup is present:
|
|||||||
tasks:
|
tasks:
|
||||||
# Ensure sudocmdgroup is present
|
# Ensure sudocmdgroup is present
|
||||||
- ipasudocmdgroup:
|
- ipasudocmdgroup:
|
||||||
ipaadmin_password: MyPassword123
|
ipaadmin_password: SomeADMINpassword
|
||||||
name: group01
|
name: group01
|
||||||
description: Group of important commands
|
description: Group of important commands
|
||||||
```
|
```
|
||||||
@@ -68,7 +68,7 @@ Example playbook to make sure that a sudo command and sudocmdgroups are present
|
|||||||
tasks:
|
tasks:
|
||||||
# Ensure sudo commands are present in existing sudocmdgroup
|
# Ensure sudo commands are present in existing sudocmdgroup
|
||||||
- ipasudocmdgroup:
|
- ipasudocmdgroup:
|
||||||
ipaadmin_password: MyPassword123
|
ipaadmin_password: SomeADMINpassword
|
||||||
name: group01
|
name: group01
|
||||||
sudocmd:
|
sudocmd:
|
||||||
- /usr/bin/su
|
- /usr/bin/su
|
||||||
@@ -88,7 +88,7 @@ Example playbook to make sure that a sudo command and sudocmdgroups are absent i
|
|||||||
tasks:
|
tasks:
|
||||||
# Ensure sudocmds are absent in existing sudocmdgroup
|
# Ensure sudocmds are absent in existing sudocmdgroup
|
||||||
- ipasudocmdgroup:
|
- ipasudocmdgroup:
|
||||||
ipaadmin_password: MyPassword123
|
ipaadmin_password: SomeADMINpassword
|
||||||
name: group01
|
name: group01
|
||||||
sudocmd:
|
sudocmd:
|
||||||
- /usr/bin/su
|
- /usr/bin/su
|
||||||
@@ -108,7 +108,7 @@ Example playbook to make sure sudocmdgroup is absent:
|
|||||||
tasks:
|
tasks:
|
||||||
# Ensure sudocmdgroup is absent
|
# Ensure sudocmdgroup is absent
|
||||||
- ipasudocmdgroup:
|
- ipasudocmdgroup:
|
||||||
ipaadmin_password: MyPassword123
|
ipaadmin_password: SomeADMINpassword
|
||||||
name: group01
|
name: group01
|
||||||
state: absent
|
state: absent
|
||||||
```
|
```
|
||||||
|
|||||||
@@ -50,7 +50,7 @@ Example playbook to make sure Sudo Rule is present:
|
|||||||
tasks:
|
tasks:
|
||||||
# Ensure Sudo Rule is present
|
# Ensure Sudo Rule is present
|
||||||
- ipasudorule:
|
- ipasudorule:
|
||||||
ipaadmin_password: MyPassword123
|
ipaadmin_password: SomeADMINpassword
|
||||||
name: testrule1
|
name: testrule1
|
||||||
```
|
```
|
||||||
|
|
||||||
@@ -66,7 +66,7 @@ Example playbook to make sure sudocmds are present in Sudo Rule:
|
|||||||
tasks:
|
tasks:
|
||||||
# Ensure Sudo Rule is present
|
# Ensure Sudo Rule is present
|
||||||
- ipasudorule:
|
- ipasudorule:
|
||||||
ipaadmin_password: MyPassword123
|
ipaadmin_password: SomeADMINpassword
|
||||||
name: testrule1
|
name: testrule1
|
||||||
allow_sudocmd:
|
allow_sudocmd:
|
||||||
- /sbin/ifconfig
|
- /sbin/ifconfig
|
||||||
@@ -85,7 +85,7 @@ Example playbook to make sure sudocmds are not present in Sudo Rule:
|
|||||||
tasks:
|
tasks:
|
||||||
# Ensure Sudo Rule is present
|
# Ensure Sudo Rule is present
|
||||||
- ipasudorule:
|
- ipasudorule:
|
||||||
ipaadmin_password: MyPassword123
|
ipaadmin_password: SomeADMINpassword
|
||||||
name: testrule1
|
name: testrule1
|
||||||
allow_sudocmd:
|
allow_sudocmd:
|
||||||
- /sbin/ifconfig
|
- /sbin/ifconfig
|
||||||
@@ -104,7 +104,7 @@ Example playbook to make sure Sudo Rule is absent:
|
|||||||
tasks:
|
tasks:
|
||||||
# Ensure Sudo Rule is present
|
# Ensure Sudo Rule is present
|
||||||
- ipasudorule:
|
- ipasudorule:
|
||||||
ipaadmin_password: MyPassword123
|
ipaadmin_password: SomeADMINpassword
|
||||||
name: testrule1
|
name: testrule1
|
||||||
state: absent
|
state: absent
|
||||||
```
|
```
|
||||||
|
|||||||
@@ -50,7 +50,7 @@ Example playbook to add a topology segment with default name (cn):
|
|||||||
tasks:
|
tasks:
|
||||||
- name: Add topology segment
|
- name: Add topology segment
|
||||||
ipatopologysegment:
|
ipatopologysegment:
|
||||||
ipaadmin_password: MyPassword123
|
ipaadmin_password: SomeADMINpassword
|
||||||
suffix: domain
|
suffix: domain
|
||||||
left: ipareplica1.test.local
|
left: ipareplica1.test.local
|
||||||
right: ipareplica2.test.local
|
right: ipareplica2.test.local
|
||||||
@@ -70,7 +70,7 @@ Example playbook to delete a topology segment:
|
|||||||
tasks:
|
tasks:
|
||||||
- name: Delete topology segment
|
- name: Delete topology segment
|
||||||
ipatopologysegment:
|
ipatopologysegment:
|
||||||
ipaadmin_password: MyPassword123
|
ipaadmin_password: SomeADMINpassword
|
||||||
suffix: domain
|
suffix: domain
|
||||||
left: ipareplica1.test.local
|
left: ipareplica1.test.local
|
||||||
right: ipareplica2.test.local
|
right: ipareplica2.test.local
|
||||||
@@ -90,7 +90,7 @@ Example playbook to reinitialize a topology segment:
|
|||||||
tasks:
|
tasks:
|
||||||
- name: Reinitialize topology segment
|
- name: Reinitialize topology segment
|
||||||
ipatopologysegment:
|
ipatopologysegment:
|
||||||
ipaadmin_password: MyPassword123
|
ipaadmin_password: SomeADMINpassword
|
||||||
suffix: domain
|
suffix: domain
|
||||||
left: ipareplica1.test.local
|
left: ipareplica1.test.local
|
||||||
right: ipareplica2.test.local
|
right: ipareplica2.test.local
|
||||||
@@ -111,7 +111,7 @@ Example playbook to verify a topology suffix:
|
|||||||
tasks:
|
tasks:
|
||||||
- name: Verify topology suffix
|
- name: Verify topology suffix
|
||||||
ipatopologysuffix:
|
ipatopologysuffix:
|
||||||
ipaadmin_password: MyPassword123
|
ipaadmin_password: SomeADMINpassword
|
||||||
suffix: domain
|
suffix: domain
|
||||||
state: verified
|
state: verified
|
||||||
```
|
```
|
||||||
|
|||||||
@@ -52,7 +52,7 @@ Example playbook to ensure a user is present:
|
|||||||
tasks:
|
tasks:
|
||||||
# Ensure user pinky is present
|
# Ensure user pinky is present
|
||||||
- ipauser:
|
- ipauser:
|
||||||
ipaadmin_password: MyPassword123
|
ipaadmin_password: SomeADMINpassword
|
||||||
name: pinky
|
name: pinky
|
||||||
first: pinky
|
first: pinky
|
||||||
last: Acme
|
last: Acme
|
||||||
@@ -66,7 +66,7 @@ Example playbook to ensure a user is present:
|
|||||||
|
|
||||||
# Ensure user brain is present
|
# Ensure user brain is present
|
||||||
- ipauser:
|
- ipauser:
|
||||||
ipaadmin_password: MyPassword123
|
ipaadmin_password: SomeADMINpassword
|
||||||
name: brain
|
name: brain
|
||||||
first: brain
|
first: brain
|
||||||
last: Acme
|
last: Acme
|
||||||
@@ -85,7 +85,7 @@ These two `ipauser` module calls can be combined into one with the `users` varia
|
|||||||
tasks:
|
tasks:
|
||||||
# Ensure users pinky and brain are present
|
# Ensure users pinky and brain are present
|
||||||
- ipauser:
|
- ipauser:
|
||||||
ipaadmin_password: MyPassword123
|
ipaadmin_password: SomeADMINpassword
|
||||||
users:
|
users:
|
||||||
- name: pinky
|
- name: pinky
|
||||||
first: pinky
|
first: pinky
|
||||||
@@ -153,7 +153,7 @@ Ensure user pinky is present with a generated random password and print the rand
|
|||||||
tasks:
|
tasks:
|
||||||
# Ensure user pinky is present with a random password
|
# Ensure user pinky is present with a random password
|
||||||
- ipauser:
|
- ipauser:
|
||||||
ipaadmin_password: MyPassword123
|
ipaadmin_password: SomeADMINpassword
|
||||||
name: brain
|
name: brain
|
||||||
first: brain
|
first: brain
|
||||||
last: Acme
|
last: Acme
|
||||||
@@ -176,7 +176,7 @@ Ensure users pinky and brain are present with a generated random password and pr
|
|||||||
tasks:
|
tasks:
|
||||||
# Ensure users pinky and brain are present with random password
|
# Ensure users pinky and brain are present with random password
|
||||||
- ipauser:
|
- ipauser:
|
||||||
ipaadmin_password: MyPassword123
|
ipaadmin_password: SomeADMINpassword
|
||||||
users:
|
users:
|
||||||
- name: pinky
|
- name: pinky
|
||||||
first: pinky
|
first: pinky
|
||||||
@@ -212,7 +212,7 @@ Example playbook to delete a user, but preserve it:
|
|||||||
tasks:
|
tasks:
|
||||||
# Remove but preserve user pinky
|
# Remove but preserve user pinky
|
||||||
- ipauser:
|
- ipauser:
|
||||||
ipaadmin_password: MyPassword123
|
ipaadmin_password: SomeADMINpassword
|
||||||
name: pinky
|
name: pinky
|
||||||
preserve: yes
|
preserve: yes
|
||||||
state: absent
|
state: absent
|
||||||
@@ -231,7 +231,7 @@ Example playbook to delete a user, but preserve it using the `users` variable:
|
|||||||
tasks:
|
tasks:
|
||||||
# Remove but preserve user pinky
|
# Remove but preserve user pinky
|
||||||
- ipauser:
|
- ipauser:
|
||||||
ipaadmin_password: MyPassword123
|
ipaadmin_password: SomeADMINpassword
|
||||||
users:
|
users:
|
||||||
- name: pinky
|
- name: pinky
|
||||||
preserve: yes
|
preserve: yes
|
||||||
@@ -252,7 +252,7 @@ Example playbook to undelete a preserved user.
|
|||||||
tasks:
|
tasks:
|
||||||
# Undelete preserved user pinky
|
# Undelete preserved user pinky
|
||||||
- ipauser:
|
- ipauser:
|
||||||
ipaadmin_password: MyPassword123
|
ipaadmin_password: SomeADMINpassword
|
||||||
name: pinky
|
name: pinky
|
||||||
state: undeleted
|
state: undeleted
|
||||||
```
|
```
|
||||||
@@ -271,7 +271,7 @@ Example playbook to disable a user:
|
|||||||
tasks:
|
tasks:
|
||||||
# Disable user pinky
|
# Disable user pinky
|
||||||
- ipauser:
|
- ipauser:
|
||||||
ipaadmin_password: MyPassword123
|
ipaadmin_password: SomeADMINpassword
|
||||||
name: pinky
|
name: pinky
|
||||||
state: disabled
|
state: disabled
|
||||||
```
|
```
|
||||||
@@ -290,7 +290,7 @@ Example playbook to enable users:
|
|||||||
tasks:
|
tasks:
|
||||||
# Enable user pinky and brain
|
# Enable user pinky and brain
|
||||||
- ipauser:
|
- ipauser:
|
||||||
ipaadmin_password: MyPassword123
|
ipaadmin_password: SomeADMINpassword
|
||||||
name: pinky,brain
|
name: pinky,brain
|
||||||
state: enabled
|
state: enabled
|
||||||
```
|
```
|
||||||
@@ -309,7 +309,7 @@ Example playbook to unlock users:
|
|||||||
tasks:
|
tasks:
|
||||||
# Unlock user pinky and brain
|
# Unlock user pinky and brain
|
||||||
- ipauser:
|
- ipauser:
|
||||||
ipaadmin_password: MyPassword123
|
ipaadmin_password: SomeADMINpassword
|
||||||
name: pinky,brain
|
name: pinky,brain
|
||||||
state: unlocked
|
state: unlocked
|
||||||
```
|
```
|
||||||
@@ -326,7 +326,7 @@ Example playbook to ensure users are absent:
|
|||||||
tasks:
|
tasks:
|
||||||
# Ensure users pinky and brain are absent
|
# Ensure users pinky and brain are absent
|
||||||
- ipauser:
|
- ipauser:
|
||||||
ipaadmin_password: MyPassword123
|
ipaadmin_password: SomeADMINpassword
|
||||||
name: pinky,brain
|
name: pinky,brain
|
||||||
state: absent
|
state: absent
|
||||||
```
|
```
|
||||||
@@ -345,7 +345,7 @@ Example playbook to ensure users are absent:
|
|||||||
tasks:
|
tasks:
|
||||||
# Ensure users pinky and brain are absent
|
# Ensure users pinky and brain are absent
|
||||||
- ipauser:
|
- ipauser:
|
||||||
ipaadmin_password: MyPassword123
|
ipaadmin_password: SomeADMINpassword
|
||||||
users:
|
users:
|
||||||
- name: pinky
|
- name: pinky
|
||||||
- name: brain
|
- name: brain
|
||||||
|
|||||||
@@ -51,7 +51,7 @@ Example playbook to make sure vault is present:
|
|||||||
|
|
||||||
tasks:
|
tasks:
|
||||||
- ipavault:
|
- ipavault:
|
||||||
ipaadmin_password: MyPassword123
|
ipaadmin_password: SomeADMINpassword
|
||||||
name: symvault
|
name: symvault
|
||||||
username: admin
|
username: admin
|
||||||
vault_password: MyVaultPassword123
|
vault_password: MyVaultPassword123
|
||||||
@@ -68,7 +68,7 @@ Example playbook to make sure that a vault and its members are present:
|
|||||||
|
|
||||||
tasks:
|
tasks:
|
||||||
- ipavault:
|
- ipavault:
|
||||||
ipaadmin_password: MyPassword123
|
ipaadmin_password: SomeADMINpassword
|
||||||
name: symvault
|
name: symvault
|
||||||
username: admin
|
username: admin
|
||||||
users: user01
|
users: user01
|
||||||
@@ -86,7 +86,7 @@ Example playbook to make sure that a vault member is present in vault:
|
|||||||
|
|
||||||
tasks:
|
tasks:
|
||||||
- ipavault:
|
- ipavault:
|
||||||
ipaadmin_password: MyPassword123
|
ipaadmin_password: SomeADMINpassword
|
||||||
name: symvault
|
name: symvault
|
||||||
username: admin
|
username: admin
|
||||||
users: user01
|
users: user01
|
||||||
@@ -103,7 +103,7 @@ Example playbook to make sure that a vault owner is absent in vault:
|
|||||||
|
|
||||||
tasks:
|
tasks:
|
||||||
- ipavault:
|
- ipavault:
|
||||||
ipaadmin_password: MyPassword123
|
ipaadmin_password: SomeADMINpassword
|
||||||
name: symvault
|
name: symvault
|
||||||
username: admin
|
username: admin
|
||||||
owner: user01
|
owner: user01
|
||||||
@@ -121,7 +121,7 @@ Example playbook to make sure vault data is present in a symmetric vault:
|
|||||||
|
|
||||||
tasks:
|
tasks:
|
||||||
- ipavault:
|
- ipavault:
|
||||||
ipaadmin_password: MyPassword123
|
ipaadmin_password: SomeADMINpassword
|
||||||
name: symvault
|
name: symvault
|
||||||
username: admin
|
username: admin
|
||||||
vault_password: MyVaultPassword123
|
vault_password: MyVaultPassword123
|
||||||
@@ -141,7 +141,7 @@ Example playbook to make sure vault data is absent in a symmetric vault:
|
|||||||
|
|
||||||
tasks:
|
tasks:
|
||||||
- ipavault:
|
- ipavault:
|
||||||
ipaadmin_password: MyPassword123
|
ipaadmin_password: SomeADMINpassword
|
||||||
name: symvault
|
name: symvault
|
||||||
username: admin
|
username: admin
|
||||||
vault_password: MyVaultPassword123
|
vault_password: MyVaultPassword123
|
||||||
@@ -159,7 +159,7 @@ Example playbook to make sure vault is absent:
|
|||||||
|
|
||||||
tasks:
|
tasks:
|
||||||
- ipavault:
|
- ipavault:
|
||||||
ipaadmin_password: MyPassword123
|
ipaadmin_password: SomeADMINpassword
|
||||||
name: symvault
|
name: symvault
|
||||||
username: admin
|
username: admin
|
||||||
state: absent
|
state: absent
|
||||||
|
|||||||
Reference in New Issue
Block a user