kostiantyn-nemchenko / ansible-role-patroni

:elephant: Ansible Role for Patroni
https://galaxy.ansible.com/kostiantyn-nemchenko/patroni
MIT License
68 stars 44 forks source link

Check defined environment variables #21

Open kostiantyn-nemchenko opened 6 years ago

kostiantyn-nemchenko commented 6 years ago

Patroni supports defining some of the configuration parameters by setting the system environment variables. We should check existing environment variables (e.g. {{ ansible_env.SOME_VARIABLE }}) before tweaking the Patroni configuration file because those variables always take precedence over the ones set in the Patroni configuration file.