Hacker News new | comments | show | ask | jobs | submit login

Imagine you're in a large enterprise environment, and need to deploy something to lots of different servers that were created by lots of different people (your company bought 3 others and each used different software/linux versions/servers). Some have python in the path, some have different pythons in the path, etc. You can't immediately throw away all these servers and rebuild them - some probably have 10 year old bits of software on them where the original author has moved away. Ansible might be one of the tools you use to start fixing this chaotic situation, and having per-host configurations for things like python path is essential.

Step 1: Install the expected, dedicated Python interpreter as /usr/bin/ansible_python.

Python is not just a single executable. It takes a little more work than one would want. And for what gain? Would you be fine with other software also requiring a custom interpreter to function? It gets cumbersome.

If you rely on the system-wide Python you'll need to cover different versions and you need to make sure not to use any 3rd party modules.

Ansible ships its own libraries, generally.

Incredibly. But it seems to be The Ruby Way™…

Well, it's an agent-less system after all, the idea is to keep the system lean.

Guidelines | FAQ | Support | API | Security | Lists | Bookmarklet | DMCA | Apply to YC | Contact