# Is anyone working on adding role support to postgresql\_user module?

**URL:** <https://forum.ansible.com/t/is-anyone-working-on-adding-role-support-to-postgresql-user-module/27502>\
**Category:** Ansible Developer\
**Created:** [May 10, 2018, 9:38am UTC](https://forum.ansible.com/t/is-anyone-working-on-adding-role-support-to-postgresql-user-module/27502 "2018-05-10T09:38:53Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Damian\_Bursztyn](https://avatars.discourse-cdn.com/v4/letter/d/977dab/32.png) [@Damian\_Bursztyn](https://forum.ansible.com/u/Damian_Bursztyn)\
**Post date:** [May 10, 2018, 9:38am UTC](https://forum.ansible.com/t/is-anyone-working-on-adding-role-support-to-postgresql-user-module/27502/1 "2018-05-10T09:38:53Z")

</div>

Hi,

Currently, Ansible’s postgresql\_user module supports many of the PostgreSQL [CREATE ROLE](https://www.postgresql.org/docs/9.6/static/sql-createrole.html).

Yet the options (i) IN ROLE (which allows to list one or more existing roles to which the new role will be immediately added as a new member) and (ii) ROLE (which allows to list one or more existing roles which are automatically added as members of the new role) are not supported.

Among the PRs I found one, namely “[postgresql\_user: add in\_role support #22613](https://github.com/ansible/ansible/pull/22613)”, which aims to add support for (the above mentioned) IN ROLE option to the postgresql\_user module.

However, I did not find a PR related to adding support for the ROLE option.

Further, I searched (with no luck) for related emails both in the [ansible-project](https://groups.google.com/forum/#!searchin/ansible-project/postgresql_user%7Csort:date) and [ansible-devel](https://groups.google.com/forum/#!searchin/ansible-devel/postgresql_user%7Csort:date) groups.

Thus, the objective of this email if to ask if anyone is working and/or is aware of someone working (and/or a PR related) to add support for the ROLE option to the postgresql\_user module.

Thanks in advance,

d.
