ANSIBLE.MONGODB_USER(3)

NAME
mongodb_user - Adds or removes a user from a MongoDB database.

DESCRIPTION

Adds or removes a user from a MongoDB database.

OPTIONS

database
    The name of the database to add/remove the user from(required)

login_host
    The host running the database (default: localhost)

login_password
    The password used to authenticate with

login_port
    The port to connect to (default: 27017)

login_user
    The username used to authenticate with

password
    The password to use for the user

state
    The database user state Choices: present,absent. (default: present)

user
    The name of the user to add or remove(required)."

NOTES

Requires the pymongo Python package on the remote host, version 2.4.2+. This can be installed using pip or the OS package manager. @see http://api.mongodb.org/python/current/installation.html

EXAMPLES

Create 'burgers' database user with name 'bob' and password '12345'.
mongodb_user: database=burgers name=bob password=12345 state=present

Delete 'burgers' database user with name 'bob'.
mongodb_user: database=burgers name=bob state=absent
None

AUTHOR
Elliott Foster

SEE ALSO
ansible(1), http://ansible.github.com/modules.html#mongodb-user