Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
ansible
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
OpenEdx
ansible
Commits
4ed97157
Commit
4ed97157
authored
Mar 28, 2012
by
Stephen Fromm
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update user_commands playbook with supplementary group examples
parent
416eb36b
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
2 deletions
+17
-2
examples/playbooks/user_commands.yml
+17
-2
No files found.
examples/playbooks/user_commands.yml
View file @
4ed97157
...
...
@@ -13,11 +13,26 @@
# Walk through account creation, modification, and deletion
-
name
:
test basic user account creation
action
:
user name=tset comment=TsetUser group=
100
shell=/sbin/nologin createhome=no
action
:
user name=tset comment=TsetUser group=
users
shell=/sbin/nologin createhome=no
# the following is just a simple example of how you don't have to include
# the 'name' element for each task
-
action
:
user name=tset comment=NyetUser
-
action
:
user name=tset password=$password
-
action
:
user name=tset password=$password supplementary
# The following will add the user to supplementary groups.
# Add the user to the groups dialout and uucp.
-
action
:
user name=tset groups=dialout,uucp
# Add the user to the groups dialout and wheel,
# This will remove tset from the group uucp.
-
action
:
user name=tset groups=dialout,wheel
# Add the user to the group uucp. Because append=yes, the user
# will not be removed from the groups dialout and wheel.
-
action
:
user name=tset groups=uucp append=yes
# Finally, remove the user.
-
action
:
user name=tset state=absent
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment