ansible-collections / ansible-consul

:satellite: Ansible role for Hashicorp Consul clusters
https://galaxy.ansible.com/ansible-community/consul/
BSD 2-Clause "Simplified" License
450 stars 313 forks source link

Updated installs for Debian 12 #570

Closed twimprine closed 4 months ago

twimprine commented 9 months ago

Debian checks the python environment and will not install the netaddr packages through python - instead it needs to be installed at a package via apt.

Added the checks to keep it from executing in the python env and installing with apt

bastienwirtz commented 9 months ago

Hi there, It's kind of a duplicate of https://github.com/ansible-community/ansible-consul/pull/564 The package does not necessarily have to be installed with apt, the issue is that the virtualenv is not activated properly (bug aside, ansible-consul role support isolated python env using virtual env, which works well on Debian and other systems).