# docker\_container to mongo auth

**URL:** <https://forum.ansible.com/t/docker-container-to-mongo-auth/28955>\
**Category:** Ansible Project\
**Created:** [November 6, 2018, 11:18am UTC](https://forum.ansible.com/t/docker-container-to-mongo-auth/28955 "2018-11-06T11:18:59Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![15911133389](https://avatars.discourse-cdn.com/v4/letter/1/5f9b8f/32.png) [@15911133389](https://forum.ansible.com/u/15911133389)\
**Post date:** [November 6, 2018, 11:18am UTC](https://forum.ansible.com/t/docker-container-to-mongo-auth/28955/1 "2018-11-06T11:18:59Z")

</div>

Why can I only add admin tables? I try to change to other or nonexistent tables.

- mongodb\_user:

database: admin #update is error

name: pangu

password: sdvxcdlskadlk1231c

state: present

roles:

- db: aitc\_matrix

role: userAdmin
