ansible/lib/ansible
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
..
cli metadata and doc generator optimization and fixes 2017-07-04 01:12:43 -07:00
compat
config added ansible_remote_tmp inventory var (#26754) 2017-07-13 15:31:10 -07:00
errors correct, cleanup & simplify dwim stack (#25956) 2017-07-03 15:27:53 -04:00
executor Namespaced facts fixes (#26615) 2017-07-12 19:27:05 -04:00
galaxy
inventory ensure all groups inherit from 'all' 2017-07-13 18:38:39 -04:00
module_utils Fix NX-API json handling (#26716) 2017-07-13 16:23:24 -04:00
modules Allow creation of Mongo user via localhost exception (#22792) 2017-07-14 10:52:19 +01:00
parsing Adds search in template/files/vars relative to the playbook path (#26460) 2017-07-05 19:45:09 -04:00
playbook added ansible_remote_tmp inventory var (#26754) 2017-07-13 15:31:10 -07:00
plugins added ansible_remote_tmp inventory var (#26754) 2017-07-13 15:31:10 -07:00
template Try to show original exception info for yaml (and other) errors (#24468) 2017-06-09 13:13:15 -04:00
utils Remove metadata from docstring parsing as per last week's meeting decision 2017-07-04 01:12:43 -07:00
vars Namespaced facts fixes (#26615) 2017-07-12 19:27:05 -04:00
__init__.py
constants.py constants: pep8 fix (#25735) 2017-06-15 13:40:06 +02:00
release.py Collated PEP8 fixes (#25293) 2017-06-02 12:14:11 +01:00