community.general/lib/ansible/modules/database
Morgan Robertson 44730c28cc Allow creation of Mongo user via localhost exception (#22792)
* Allow creation of user with localhost exception.

Fixes #22791

When access control is enabled, Mongo allows a user to be created from
localhost (called the "localhost exception":
https://docs.mongodb.com/v3.2/core/security-users/#localhost-exception).
When the `update_password` parameter was added to this module in
Ansible 2.1, this functionality was broken due to a query performed
before `user_add()` is called. This fix only performs the query when
when `update_password` is set to `on-create`, allowing a user to be
created via the localhost exception.

* Only set `password = None` when user exists.
2017-07-14 10:52:19 +01:00
..
influxdb E501 fixes (#22879) 2017-03-22 20:50:28 -05:00
misc Fix spelling mistakes (comments only) (#25564) 2017-06-12 07:55:19 +01:00
mongodb Allow creation of Mongo user via localhost exception (#22792) 2017-07-14 10:52:19 +01:00
mssql E501 fixes (#22879) 2017-03-22 20:50:28 -05:00
mysql Pep8 fixes for mysql module (#23923) 2017-04-26 12:56:35 +01:00
postgresql postgres_db: add dump and restore support (#20627) 2017-07-10 08:05:42 +01:00
proxysql fixed RETURN docs for modules (#24011) 2017-04-26 15:56:13 +01:00
vertica Return exception as string 2017-06-12 11:26:54 -04:00
__init__.py package files 2016-12-08 11:22:22 -05:00