Closed emisca closed 1 year ago
Add mongodb 6.0 repo and switch to mongosh for ansible tasks if version is 5.0 or 6.0.
Currently by adding only the 6.0 repo the ansible tasks fail with:
fatal: [opsmgr]: FAILED! => {"changed": true, "cmd": "mongo omserver.omansible.int:27017 --quiet --eval \"print(db.getSiblingDB('mmsdbconfig').config.customers.findOne()._id.str)\"", "delta": "0:00:00.450647", "end": "2023-03-22 12:50:59.589072", "msg": "non-zero return code", "rc": 127, "start": "2023-03-22 12:50:59.138425", "stderr": "/bin/sh: mongo: command not found", "stderr_lines": ["/bin/sh: mongo: command not found"], "stdout": "", "stdout_lines": []}
because the old mongo shell is not provided anymore. 5.0 still works as the mongo shell is provided.
The agreed plan is:
Add mongodb 6.0 repo and switch to mongosh for ansible tasks if version is 5.0 or 6.0.
Currently by adding only the 6.0 repo the ansible tasks fail with:
because the old mongo shell is not provided anymore. 5.0 still works as the mongo shell is provided.