Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
Ansible FreeIPA
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Model registry
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Mirror
Ansible FreeIPA
Commits
00862d97
Unverified
Commit
00862d97
authored
5 years ago
by
Thomas Woerner
Committed by
GitHub
5 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Update README-user.md: Fixed examples, new example for unlocked
parent
50611a04
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
README-user.md
+26
-9
26 additions, 9 deletions
README-user.md
with
26 additions
and
9 deletions
README-user.md
+
26
−
9
View file @
00862d97
...
...
@@ -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:
#
Remo
ve user pinky
and brain
#
Undelete preser
ve
d
user pinky
-
ipauser:
ipaadmin_password: MyPassword123
name: pinky
...
...
@@ -118,7 +118,7 @@ Example playbook to disable a user:
become
:
true
tasks
:
#
Remov
e user pinky
and brain
#
Disabl
e 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:
#
Remov
e user pinky and brain
#
Enabl
e 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
```
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment