mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Update group_commands playbook example
Remove the group membership example. There's not much to twiddle with the group module. Give examples for what is possible.
This commit is contained in:
parent
a379d58cdb
commit
e851f7542f
1 changed files with 4 additions and 7 deletions
|
@ -10,11 +10,8 @@
|
|||
- name: create a group
|
||||
action: group name=tset
|
||||
|
||||
- name: add a member to tset
|
||||
action: group name=tset member=nobody memberstate=present
|
||||
# You can only modify the group's gid
|
||||
- action: group name=tset gid=7777
|
||||
|
||||
- name: remove member
|
||||
action: group name=tset member=nobody memberstate=absent
|
||||
|
||||
- name: remove group
|
||||
action: group name=tset state=absent
|
||||
# And finally remove the group
|
||||
- action: group name=tset state=absent
|
||||
|
|
Loading…
Reference in a new issue