2012-03-27 22:53:40 +02:00
|
|
|
---
|
|
|
|
# This is a demo of how the group command works.
|
|
|
|
|
|
|
|
- hosts: all
|
|
|
|
user: root
|
2012-04-27 06:46:17 +02:00
|
|
|
sudo: True
|
2012-03-27 22:53:40 +02:00
|
|
|
|
|
|
|
tasks:
|
|
|
|
|
|
|
|
# Walk through group creation, modification, and deletion
|
|
|
|
- name: create a group
|
|
|
|
action: group name=tset
|
|
|
|
|
2012-03-28 23:32:56 +02:00
|
|
|
# You can only modify the group's gid
|
|
|
|
- action: group name=tset gid=7777
|
2012-03-27 22:53:40 +02:00
|
|
|
|
2012-03-28 23:32:56 +02:00
|
|
|
# And finally remove the group
|
|
|
|
- action: group name=tset state=absent
|