Thanks for creating a new topic for this!
Currently you can't enable remote embedding directly from the
config.js file. You have to go in https://your-instance.org/admin/#general and tick the box.
I'd like to know more about your use-case. As I understand you deploy CryptPad with Ansible one time, then you login with your admin account and tick the Remote Embedding box one time and you're done.
When applying updates the admin settings should remain, you won't have to tick the box again. Or maybe your Ansible Playbook override something?