При создании пользователя из ansible для моей базы данных mongo я получаю сообщение об ошибке, я перепробовал много вариантов, но все еще не добился успеха, я теперь дохожу до MONGO db, не могли бы вы попытаться помочь мне с этой ошибкой. *
Ниже приведена ошибка, которую я получаю: -
$>ansible-playbook a.yml
PLAY [Create User] ******************************************************************************************************************************************
TASK [Gathering Facts] **************************************************************************************************************************************
ok: [localhost]
TASK [mongodb_user] *****************************************************************************************************************************************
An exception occurred during task execution. To see the full traceback, use -vvv. The error was: OperationFailure: command SON([('createUser', 'srini'), ('pwd', u'83990cb68048395a588a63033c2c5baa'), ('digestPassword', False), ('roles', ['admin'])]) on namespace admin.$cmd failed: Use of SCRAM-SHA-256 requires undigested passwords
[WARNING]: The value 27019 (type int) in a string field was converted to u'27019' (type string). If this does not look like what you expect, quote the
entire value to ensure it does not change.
[WARNING]: The value ******** (type int) in a string field was converted to u'********' (type string). If this does not look like what you expect, quote
the entire value to ensure it does not change.
fatal: [localhost]: FAILED! => {"changed": false, "msg": "Unable to add or update user: command SON([('createUser', 'srini'), ('pwd', u'83990cb68048395a588a63033c2c5baa'), ('digestPassword', False), ('roles', ['admin'])]) on namespace admin.$cmd failed: Use of SCRAM-SHA-256 requires undigested passwords"}
PLAY RECAP **************************************************************************************************************************************************
localhost : ok=1 changed=0 unreachable=0 failed=1 skipped=0 rescued=0 ignored=0