Idiomatic way to read .env variables in Ansible?
- by Arms
I'm provisioning a Vagrant box with Ansible, and using Benno Joy's MySQL role to setup MySQL (including creating a database and users.) The database name and credentials are stored in a .env file in the project's root. What would be the idiomatic way to use these variables when provisioning MySQL?
Should I write a custom script that generates a YAML file from my .env, and then use the include_vars module? Or is there a simpler way?