From b373c6c22390084b4c5ed4ffa0c5f7a98cac1d16 Mon Sep 17 00:00:00 2001 From: Stephen Fromm Date: Tue, 27 Mar 2012 13:53:40 -0700 Subject: [PATCH] Add playbook to demonstrate use of group module --- examples/playbooks/group_commands.yml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 examples/playbooks/group_commands.yml diff --git a/examples/playbooks/group_commands.yml b/examples/playbooks/group_commands.yml new file mode 100644 index 00000000000..78cb0810309 --- /dev/null +++ b/examples/playbooks/group_commands.yml @@ -0,0 +1,20 @@ +--- +# 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 + + - name: add a member to tset + action: group name=tset member=nobody memberstate=present + + - name: remove member + action: group name=tset member=nobody memberstate=absent + + - name: remove group + action: group name=tset state=absent