Linuxfabrik / lfops

LFOps is an Ansible Collection of generic Roles, Playbooks and Plugins for managing Linux-based Cloud Infrastructures.
https://linuxfabrik.ch
The Unlicense
53 stars 13 forks source link

role: mongodb: change mongodb__conf_net_bind_ip #138

Closed rooso closed 9 months ago

rooso commented 9 months ago

Fix connection issue when multiple address in mongodb__conf_net_bind_ip where specified. As example mongodb__conf_net_bind_ip: 'localhost,10.122.10.20

TASK [linuxfabrik.lfops.mongodb : Create DBA "ansible" (if first user, using localhost exception)] ***
fatal: [p-vm-facts-001.stadtluzern.ch]: FAILED! => {"changed": false, "msg": "Unable to connect to database: Cannot specify multiple hosts with directConnection=true"}
NavidSassan commented 9 months ago

nice catch, thanks a lot for the PR :)