ansible/examples/playbooks/group_commands.yml
Stephen Fromm e851f7542f 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.
2012-03-28 14:32:56 -07:00

18 lines
371 B
YAML

---
# This is a demo of how the group command works.
- hosts: all
user: root
tasks:
# Walk through group creation, modification, and deletion
- name: create a group
action: group name=tset
# You can only modify the group's gid
- action: group name=tset gid=7777
# And finally remove the group
- action: group name=tset state=absent