# Pastebin 53saGvpK TASK [mongod : Create admin user] - 01:04 fatal: [noc02]: FAILED! => {"changed": true, "cmd": "/usr/bin/mongo admin /opt/noc/var/etc/mongo/admininit.js", "delta": "0:00:00.042406", "end": "2016-03-17 09:57:08.613995", "failed": true, "rc": 253, "start": "2016-03-17 09:57:08.571589", "stderr": "", "stdout": "MongoDB shell version: 3.2.4\nconnecting to: admin\n2016-03-17T09:57:08.612+0300 E QUERY [thread1] Error: couldn't add user: not authorized on admin to execute command { createUser: \"root\", pwd: \"xxx\", roles: [ \"root\" ], digestPassword: false, writeConcern: { w: \"majority\", wtimeout: 30000.0 } } :\n_getErrorWithCode@src/mongo/shell/utils.js:23:13\nDB.prototype.createUser@src/mongo/shell/db.js:1230:11\n@/opt/noc/var/etc/mongo/admininit.js:4:1\n\nfailed to load: /opt/noc/var/etc/mongo/admininit.js", "stdout_lines": ["MongoDB shell version: 3.2.4", "connecting to: admin", "2016-03-17T09:57:08.612+0300 E QUERY [thread1] Error: couldn't add user: not authorized on admin to execute command { createUser: \"root\", pwd: \"xxx\", roles: [ \"root\" ], digestPassword: false, writeConcern: { w: \"majority\", wtimeout: 30000.0 } } :", "_getErrorWithCode@src/mongo/shell/utils.js:23:13", "DB.prototype.createUser@src/mongo/shell/db.js:1230:11", "@/opt/noc/var/etc/mongo/admininit.js:4:1", "", "failed to load: /opt/noc/var/etc/mongo/admininit.js"], "warnings": []}