# ansible roles create users

**URL:** <https://forum.ansible.com/t/ansible-roles-create-users/25700>\
**Category:** Ansible Project\
**Created:** [October 9, 2017, 9:01am UTC](https://forum.ansible.com/t/ansible-roles-create-users/25700 "2017-10-09T09:01:26Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![amber\_mehra](https://avatars.discourse-cdn.com/v4/letter/a/ac91a4/32.png) [@amber\_mehra](https://forum.ansible.com/u/amber_mehra)\
**Post date:** [October 9, 2017, 9:01am UTC](https://forum.ansible.com/t/ansible-roles-create-users/25700/1 "2017-10-09T09:01:26Z")

</div>

Hey guys!!

I have some requirement where i need to create bunch of user and groups using ansible roles. can you help me what is best way to do this?

1 ) Create following group

a) dev  
b) qa  
c) devops

1. There is list of users and defined group respectively over here : roles/usermanage/var/main.yml  
dev:

- ryan
- sarah  
qa:
- gayle
- alfraid  
devops:
- amber
- zing

Please advise how to write playbooks/roles/task?
