1904aa21e1
- ipauser example playbooks: Fixed actions, new example
105 lines
2.2 KiB
Diff
105 lines
2.2 KiB
Diff
From 00862d9709936d70be246573d3e1bd7a7cfcb180 Mon Sep 17 00:00:00 2001
|
|
From: Thomas Woerner <twoerner@redhat.com>
|
|
Date: Tue, 9 Jul 2019 11:46:51 +0200
|
|
Subject: [PATCH 1/2] Update README-user.md: Fixed examples, new example for
|
|
unlocked
|
|
|
|
---
|
|
README-user.md | 35 ++++++++++++++++++++++++++---------
|
|
1 file changed, 26 insertions(+), 9 deletions(-)
|
|
|
|
diff --git a/README-user.md b/README-user.md
|
|
index 0467efc..8590d61 100644
|
|
--- a/README-user.md
|
|
+++ b/README-user.md
|
|
@@ -83,16 +83,16 @@ Example playbook to delete a user, but preserve it:
|
|
become: true
|
|
|
|
tasks:
|
|
- # Remove user pinky and brain
|
|
+ # Remove but preserve user pinky
|
|
- ipauser:
|
|
ipaadmin_password: MyPassword123
|
|
name: pinky
|
|
preserve: yes
|
|
- state: disabled
|
|
+ state: absent
|
|
```
|
|
|
|
|
|
-Example playbook to undelete a user.
|
|
+Example playbook to undelete a preserved user.
|
|
|
|
```yaml
|
|
---
|
|
@@ -101,7 +101,7 @@ Example playbook to undelete a user.
|
|
become: true
|
|
|
|
tasks:
|
|
- # Remove user pinky and brain
|
|
+ # Undelete preserved user pinky
|
|
- ipauser:
|
|
ipaadmin_password: MyPassword123
|
|
name: pinky
|
|
@@ -118,7 +118,7 @@ Example playbook to disable a user:
|
|
become: true
|
|
|
|
tasks:
|
|
- # Remove user pinky and brain
|
|
+ # Disable user pinky
|
|
- ipauser:
|
|
ipaadmin_password: MyPassword123
|
|
name: pinky
|
|
@@ -126,7 +126,7 @@ Example playbook to disable a user:
|
|
```
|
|
|
|
|
|
-Example playbook to enable a users:
|
|
+Example playbook to enable users:
|
|
|
|
```yaml
|
|
---
|
|
@@ -135,11 +135,28 @@ Example playbook to enable a users:
|
|
become: true
|
|
|
|
tasks:
|
|
- # Remove user pinky and brain
|
|
+ # Enable user pinky and brain
|
|
- ipauser:
|
|
ipaadmin_password: MyPassword123
|
|
name: pinky,brain
|
|
- state: disabled
|
|
+ state: enabled
|
|
+```
|
|
+
|
|
+
|
|
+Example playbook to unlock users:
|
|
+
|
|
+```yaml
|
|
+---
|
|
+- name: Playbook to handle users
|
|
+ hosts: ipaserver
|
|
+ become: true
|
|
+
|
|
+ tasks:
|
|
+ # Unlock user pinky and brain
|
|
+ - ipauser:
|
|
+ ipaadmin_password: MyPassword123
|
|
+ name: pinky,brain
|
|
+ state: unlocked
|
|
```
|
|
|
|
|
|
@@ -156,7 +173,7 @@ Example playbook to delete users:
|
|
- ipauser:
|
|
ipaadmin_password: MyPassword123
|
|
name: pinky,brain
|
|
- state: disabled
|
|
+ state: absent
|
|
```
|
|
|
|
|
|
--
|
|
2.21.0
|
|
|