Starting LDAP Background Synch with command

Hello guys,

Iam having a Problem with the LDAP sync i want to start it with an Playbook so I can sync my LDAP to my Rocketchat and Set the Admins. The only Problem iam facing right now is how can I start the sync via my Playbook.

docker exec -t mongo mongo rocketchat --eval ‘db.rocketchat_settings.update({’_id’:“LDAP_Sync_Now”}, {$set:{‘value’:true}})’

I’am using this command for the sync but it wont work since i cant see what the sync button triggers and therefore cant optimize this command.

I’am running Rocketchat in a Docker environment.

And sorry if this is a trivial question but I’am new to this scene.

Thanks in advance.