mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Add playbook to test user module
This commit is contained in:
parent
f4835477b0
commit
999bead9ed
1 changed files with 22 additions and 0 deletions
22
test/playbook4.yml
Normal file
22
test/playbook4.yml
Normal file
|
@ -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
|
Loading…
Reference in a new issue