Set rs.slaveOk() is not working via CLI?

Hi @Stennie_X ,

Thank you for the update.

I am trying to automate the replication setup via Ansible and want to enable read for all the secondary nodes. As part of the automation, the above mentioned command is executed via ansible on the secondary nodes.

Please let me know if you need more details on this.

Thanks and Regards,
Ramesh