Comments (4)
Interesting... I think because I had only installed Python 3 on my own system, it wasn't causing an issue. But it might be good to force Python 3 usage. The difficulty is some people may have Python set up differently or want to use pyenv, and I don't want to override that behavior.
from internet-pi.
Maybe put it in the example.inventory.yml with a comment explaining why people might want to use it?
from internet-pi.
@Duckle29 first thing i do after adding hosts to inventory is adding python 3 var to the inv, fresh install of pi always caused issues for me.
from internet-pi.
@Duckle29 - Setting the ansible_python_interpreter
is often not necessary and depends a lot on how you install Ansible in the first place—plus it can cause weird issues if you use pyenv too, so I typically favor not mentioning it and sadly, letting users kind of hit the issue on their own and go down the Google rabbit hole.
Basically, the way Ansible reference Python can differ based on if you use a system-installed Ansible (package manager), source install, or pip install, and trying to account for the variety can be dizzingly difficult, which is why I exclusively install Ansible with pip3 install ansible
nowadays, and just have one Python 3 version installed system-wide :)
from internet-pi.
Related Issues (20)
- Modernize to use Docker Compose plugin and docker_compose_v2 Ansible module
- SSH Not working with Playbook HOT 6
- couldn't resolve module/action 'community.docker.docker_compose_v2' HOT 1
- failure at TASK [Ensure internet-monitoring environment is running.] HOT 2
- Syntax issue with "- name" when running main.yml HOT 3
- Issue with domain_name_enable HOT 7
- Install fails: Ansible-Playbook main.yml fails when domain_name_enable is used
- How-to add more sites to the Uptime graph?? HOT 6
- TASK [Ensure internet-monitoring environment is running.] - FAILED HOT 3
- Angular deprecation affects 'Node Exporter' Grafana dashboard HOT 9
- TypeError: run_command() got an unexpected keyword argument 'ignore_invalid_cwd' HOT 2
- TASK [Ensure internet-monitoring environment is running.] HOT 1
- wrong measurements? HOT 1
- Unable to connect [ip_address]/admin HOT 12
- Grafana public dashboard - Internal server error HOT 2
- Unable to connect to Grafana IP after reboot HOT 14
- Getting error when updating or recomposing grafana HOT 1
- Speedtest container unhealthy HOT 1
- Panel plugin not found: flant-statusmap-panel HOT 7
- The Statusmap plugin has been deprecated and is no longer maintained. HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from internet-pi.