Open jwhimpel opened 3 years ago
Kind of late with my comment but:
Set your Python version (python will alias to whatever you set):
sudo update-alternatives --set python /usr/bin/pythonXXX
Or update your default Python installation:
sudo update-alternatives --config python
Both files/apache2.facts.py and files/apache2-server-status.py begin with:
!/usr/bin/env python
Under Ubuntu 18_04 on the ansible host (not controller) that yields an empty return and the task named "Create apache2__version variable" dies.
If I change the beginning line to read:
!/usr/bin/env python3
Everything works as I would expect it to work.
I do not grok enough python to know to fix the issue such that the files work with both python2 and python3. I will leave that exercise to the publisher of the role.