# Ansible seems not supporting fundemental user management commands in Arch Linux

**URL:** <https://forum.ansible.com/t/ansible-seems-not-supporting-fundemental-user-management-commands-in-arch-linux/31711>\
**Category:** Ansible Project\
**Tags:** ubuntu\
**Created:** [November 22, 2019, 9:41pm UTC](https://forum.ansible.com/t/ansible-seems-not-supporting-fundemental-user-management-commands-in-arch-linux/31711 "2019-11-22T21:41:16Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Bilinmek\_Istemiyor](https://avatars.discourse-cdn.com/v4/letter/b/9fc348/32.png) [@Bilinmek\_Istemiyor](https://forum.ansible.com/u/Bilinmek_Istemiyor)\
**Post date:** [November 22, 2019, 9:41pm UTC](https://forum.ansible.com/t/ansible-seems-not-supporting-fundemental-user-management-commands-in-arch-linux/31711/1 "2019-11-22T21:41:16Z")

</div>

Hello,

I am building a nas server with manjaro architect (arch based distribution). I try to automate tasks with ansible. However ansible user management is giving me errors stating that "“msg”: “Unsupported parameters for (group) module: append, comment, group, groups, home, shell Supported parameters include: gid, local, name, non\_unique, state, system”} "

However to the best of my knowledge command set is the same with debian, ubuntu etc. The not supported parameters are crucial for account management since I use lots of custom groups and custom home folder paths along with shell option.

I believe ansible detect the environment as follows

“ansible\_distribution”: “Archlinux”,  
“ansible\_distribution\_file\_path”: “/etc/arch-release”,  
“ansible\_distribution\_file\_variety”: “Archlinux”,  
“ansible\_distribution\_major\_version”: “18”,  
“ansible\_distribution\_release”: “Juhraya”,  
“ansible\_distribution\_version”: “18.1.3”,

Any help much appreciated

---

<div class="post-metadata">

**Author:** ![acozine1](https://avatars.discourse-cdn.com/v4/letter/a/c89c15/32.png) [@acozine1](https://forum.ansible.com/u/acozine1)\
**Post date:** [November 22, 2019, 9:49pm UTC](https://forum.ansible.com/t/ansible-seems-not-supporting-fundemental-user-management-commands-in-arch-linux/31711/2 "2019-11-22T21:49:09Z")

</div>

Can you add the playbook you’re running? The error message alone only gets us so far.

The error message is telling you that a task using the group module cannot include all the parameters you’re passing to it. Take a look at [http://docs.testing.ansible.com/ansible/devel/modules/group\_module.html](http://docs.testing.ansible.com/ansible/devel/modules/group_module.html) for detailed documentation on how to use the group module and the parameters it accepts.

Hope this helps,  
Alicia

---

<div class="post-metadata">

**Author:** ![Bilinmek\_Istemiyor](https://avatars.discourse-cdn.com/v4/letter/b/9fc348/32.png) [@Bilinmek\_Istemiyor](https://forum.ansible.com/u/Bilinmek_Istemiyor)\
**Post date:** [November 22, 2019, 10:23pm UTC](https://forum.ansible.com/t/ansible-seems-not-supporting-fundemental-user-management-commands-in-arch-linux/31711/3 "2019-11-22T22:23:10Z")

</div>

Thank you for the response.

I have extracted some private information but the playbook is a follows…

- hosts: nas  
remote\_user: root  
tasks:
- name: create users  
group:  
name: “{{ item.name }}”  
comment: “{{ item.comment }}”  
shell: “{{ item.shell }}”  
home: “{{ item.home }}”  
group: “{{ item.name }}”  
groups: “{{ item.groups }}”  
append: yes  
loop:
- { name: ‘user1’, comment: ‘User1 Information’, shell: ‘/user/bin/bash’, home: ‘/pool/home/user1’, groups: ‘group1,group2,group3,group4,group5,group6’}
- { name: ‘user2’, comment: ‘User2 Information’, shell: ‘/user/bin/nologin’, home: ‘/pool/home/user2’, groups: ‘group1,group2,group3,group4,group5,group6’}
- { name: ‘user3’, comment: ‘User3 Information’, shell: ‘/user/bin/nologin’, home: ‘/pool/home/user3’, groups: ‘group1,group2,group3,group4,group5,group6’}

---

<div class="post-metadata">

**Author:** ![jean-yves](https://avatars.discourse-cdn.com/v4/letter/j/a587f6/32.png) [@jean-yves](https://forum.ansible.com/u/jean-yves)\
**Post date:** [November 22, 2019, 10:33pm UTC](https://forum.ansible.com/t/ansible-seems-not-supporting-fundemental-user-management-commands-in-arch-linux/31711/4 "2019-11-22T22:33:33Z")

</div>

Hi,

You did a mix between the user module and the group module parameters.

Please read docs and samples :

[https://docs.ansible.com/ansible/latest/modules/group\_module.html](https://docs.ansible.com/ansible/latest/modules/group_module.html)

[https://docs.ansible.com/ansible/latest/modules/user\_module.html](https://docs.ansible.com/ansible/latest/modules/user_module.html)

I think you should made a loop around group module to ensure all wanted groups exist,

and a second loop around user module to create users you want

Regards,

JYL

---

<div class="post-metadata">

**Author:** ![Bilinmek\_Istemiyor](https://avatars.discourse-cdn.com/v4/letter/b/9fc348/32.png) [@Bilinmek\_Istemiyor](https://forum.ansible.com/u/Bilinmek_Istemiyor)\
**Post date:** [November 23, 2019, 2:58am UTC](https://forum.ansible.com/t/ansible-seems-not-supporting-fundemental-user-management-commands-in-arch-linux/31711/5 "2019-11-23T02:58:55Z")

</div>

Thank you for the solution. Embrassing copy and paste error … Do not know what to say…Thank you again for sparing time…
