From 999bead9ed18d48ce4379e572c216ff7e827efcc Mon Sep 17 00:00:00 2001 From: Stephen Fromm Date: Thu, 22 Mar 2012 11:36:11 -0700 Subject: [PATCH] Add playbook to test user module --- test/playbook4.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 test/playbook4.yml diff --git a/test/playbook4.yml b/test/playbook4.yml new file mode 100644 index 0000000000..19e28bb5a8 --- /dev/null +++ b/test/playbook4.yml @@ -0,0 +1,22 @@ +--- +- hosts: all + user: root + vars: + # created with: + # crypt.crypt('This is my Password', '$1$SomeSalt') + password: $1$SomeSalt$UqddPX3r4kH3UL5jq5/ZI. + + tasks: + + # Walk through account creation, modification, and deletion + - name: test basic user account creation + action: user name=tset comment=TsetUser gid=100 shell=/sbin/nologin createhome=no + + - name: test user account modification + action: user name=tset comment=NyetUser + + - name: test user account password change + action: user name=tset password=$password + + - name: test user account modification + action: user name=tset state=absent