-
Notifications
You must be signed in to change notification settings - Fork 9
Ansible docs install trimmed down to 'pip' #83
Comments
At the spur of the moment, I should say don't document how to install ansible on specific distros (there are so many...) using their specific package management. It's their job to document how to install a package in general / ansible specifically. However, you might want to make it clearer that the documentation in Ansible installation is outside the usual package management of distributions. And, if people don't want this, refer them generally to the documentation of the distro they use. |
Option 4 aligns with the recommended way to install, and is the least burdensome, but the issue with not having anything at all for distro installs (option 4) is that no matter how bad of an idea it is people will still want to do it, and they will not find it in the docs, and they will ask (via issues or in chat or whatever) and not having a good answer for frequently asked questions is generally not a good experience. So I like option 3, but the main issue for option 3 is dead links; keeping the links to the instructions alive is less work than keeping working install instructions alive, but it's still work. I think that 3 is a good option if we can provide high-quality, maintained links with stable URLs. If there are folks out there maintaining those external pages who can provide some level of commitment to that, then I'd be all for linking to those external instructions. I also like @mariolenz 's suggestion to more explicitly say upfront that the recommended way to install Ansible is through In short I'd vote for option 3 with caveats, of if that's not possible, then option 4 with more explicit messaging about why distro / other install options are not on this page. |
While distributions might also provide Installing via |
@briantist I didn't say anything about installation through
@MarkusTeufelberge Well, yes. My point is: This should be documented within the distro.
I don't see why using BTW: The people actually developing Ansible / collections generally work directly on the source code, the don't need PyPI packages ;-)
I'm not sure what you mean. With |
Ansible does not pin its dependencies down by design (https://github.com/ansible/ansible/blob/devel/requirements.txt) so whenever you run Another issue is that there's no builtin mechanism to detect which package a certain file belongs to for example and unlike distro package managers, pip also lacks a "update all my packages to the latest stable and tested version" feature. This is by design, since there might be lots of different projects that you manage via pip in many different environments - it is designed to help you manage the dependencies of the Python code you write, not to install finished pieces of software that is supposed to be used and executed. It's like using On the flip side there are tons of issues with only using distro packages too. For example you'd be stuck on Ansible 2.5.1(!) if you were using Ubuntu 18.04 LTS, even with backports enabled. Even the upcoming Ubuntu 22.04 release will ship Ansible 2.10 (https://packages.ubuntu.com/jammy/ansible - but also ansible-core 2.12, so there might be some hope left. Thanks for that version number chaos I guess... https://packages.ubuntu.com/jammy/ansible-core ) and thus cause its users a LOT of issues to even find documentation online right from its release in a few weeks from now. This is why the official PPA exists, to bridge that gap. There might be other (better?) ways to get a working up-to-date and tested/verified installation of ansible onto your system, such as official Docker/OCI container images for example and if you feel adventurous or don't really care about something breaking and you having to manually fix something here and there (as well as being comfortable with the tooling - not everyone is a Python developer!) |
Maybe add a |
I'd vote for 1 or 2. Pip is inappropriate for many corporate scenarios. |
I appreciate the install page as it is now as of Apr 03, 2022. I think it hits the balance very well saying that distros might have their own packages of ansible and that the user can install those if he thinks so. If ansible as a project commits to maintaining the Not pinning or respectively prescribing which versions of its dependencies ansible depends on is risky, however if ansible's dependencies consider themselves mature projects with proper semantic versioning then the risk should be manageable. While the install page looks very fine to me, I would like to address a tendency that I feel shows a little bit here: SW creators coming down on installing their SW from distro: I do not know if any of you has witnessed the times before there were distros (say working on a SunOS machine) where you had to install everything by yourself and installing some random software would take you from a half an hour to a day. We all are only able to enjoy our productivity because a huge amount of software is only an And finally, the reason why I'm here is #76799 the gist of which is that it's really hard to find the "latest stable" ansible release, a topic which the web page is not very explicit about except for the top yellowish text which mentions selecting the "latest stable version" via dropdown on that page. |
implemented by ansible/ansible#77567 |
Summary
Recent doc changes have trimmed the Ansible installation to use
pip
as the standard install. This simplifies the approach for new users to a common tool.The question for the community - do we need to bring back any of the other package install options on a separate 'other installation options' page? We don't want to have the full list we used to have because it frequently got outdated and the community team and core don't have the expertise to keep it valid. Our options are:
Thoughts/comments welcome on any of these options or other ideas!
The text was updated successfully, but these errors were encountered: