vitabaks / postgresql_cluster

PostgreSQL High-Availability Cluster (based on "Patroni" and DCS "etcd" or "consul"). Automating with Ansible.
MIT License
1.29k stars 352 forks source link

Set variable "ansible_python_interpreter" if not defined #635

Closed vitabaks closed 3 weeks ago

vitabaks commented 3 weeks ago

in the previous PR, it was suggested to set the ansible_python_interpreter variable globally at the inventory level. But if this variable is not specified, then errors are possible.

Now we have added checks at the playbook level, if this variable is not defined (or rather does not have a python3 value) then the variable will be set automatically.