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

ansible_python_interpreter: Use Python 3 (by default) #624

Closed vitabaks closed 1 month ago

vitabaks commented 1 month ago

This PR introduces changes to explicitly use Python 3 and dynamically determine the Python interpreter path using /usr/bin/env python3 to ensure compatibility with various Linux distributions.

Additionally, explicit definitions of the ansible_python_interpreter variable have been removed from certain tasks as it is now globally specified for the entire playbook.