systemli / ansible-role-mumble

Ansible role to install & maintain mumble-server
9 stars 4 forks source link

Is python2 still required? #4

Open e1mo opened 4 years ago

e1mo commented 4 years ago

On newer systems there is no python2.7 available anymore. Is it a hard requirement or just a leftover? I have done a bit of quick searching around and haven't found a definitive answer if mumble web or any of its dependencies require python2.7.

Has anyone tried running it with python3 on a modern system?

https://github.com/systemli/ansible-role-mumble/blob/93eb4d386d3d525c75f4daaf6890d8305e8c6348/templates/mumble-web.service.j2#L6

https://github.com/systemli/ansible-role-mumble/blob/93eb4d386d3d525c75f4daaf6890d8305e8c6348/tasks/mumble-web.yml#L24

xshadow commented 4 years ago

Hello e1mo, this effects only the mumble-web.service - which is disabled by default. We haven't tried it on python2.7-free systems yet, since the latest Debian (10 / Buster), still has Debian support.

You could create a branch, add the newest Ubuntu in .travis.yml and enable mumble-web in the defaults and change the /usr/bin/python2 to /usr/bin/python3

env:
  matrix:
    - MOLECULE_DISTRO: debian10
    - MOLECULE_DISTRO: debian9
e1mo commented 4 years ago

Thanks, that sounds good. I'll give it a try in the next days.

On 14/09/2020 15.12, xshadow wrote:

Hello e1mo, this effects only the mumble-web.service - which is disabled by default. We haven't tried it on python2.7-free systems yet, since the latest Debian (10 / Buster), still has Debian support.

You could create a branch, add the newest Ubuntu in .travis.yml and enable mumble-web in the defaults and change the /usr/bin/python2 to /usr/bin/python3

env:
  matrix:
    - MOLECULE_DISTRO: debian10
    - MOLECULE_DISTRO: debian9