Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- - name: User creation
- user: name="{{item.username}}"
- group="{{item.username if users_create_per_user_group
- else users_group}}"
- groups="{{item.groups | join(',')}}"
- shell={{item.shell if item.shell is defined else users_default_shell}}
- password="{{item.password if item.password is defined else '!'}}"
- comment="{{item.name}}"
- update_password="{{'on_create' if users_update_password else 'always'}}"
- uid="{{item.uid}}"
- createhome="{{'yes' if users_create_homedirs else 'no'}}"
- with_items: users
- tags: ['users','configuration']
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement