matrix-docker-ansible-deploy
matrix-docker-ansible-deploy copied to clipboard
Check whether `ansible-core` need to be installed manually or not
Is your feature request related to a problem? Please describe. https://github.com/spantaleev/matrix-docker-ansible-deploy/pull/3820#issuecomment-2498170321 says:
For example, on Archlinux, most people would install ansible, which is the "Official assortment of Ansible collections". This package depends on
ansible-core, which is "the Ansible program itself".Interestingly, the Ansible page on ArchWiki recommends
ansible-coreand then says:Additionally, you can install the ansible package, which provides a range of community curated collections.
.. so it's possible that some people only install
ansible-coreand skip this "additional step".On the other hand, it makes more sense to just install
ansibleand most people will even blindly dopacman -Syu ansiblewithout even checking this ArchWiki page. Doing that will do the right thing (pulling bothansibleand itsansible-coredependency).On Ubuntu (24.04) and Debian (12) the situation is similar -
ansibledepends onansible-core. You installingansiblewill do the right thing.On Rocky Linux, there's only
ansible-corein the base repositories.If you install
epel-release(Extra Packages for Enterprise Linux (EPEL) repository), then this extra repository provides:
ansible, which contains various collections (and depends onansible-core)various
ansible-collection-*packages (e.g.ansible-collection-community-dockerproviding thecommunity.dockerAnsible collection), etc.Interestingly, the
ansiblepackage seems to provide thecommunity.dockerplugin as well (verified by runningrpm -ql ansible | grep community/docker)So, installing
ansiblewill do the right thing (pullingansible-coreas a dependency), but it requires that you have enabled EPEL (by installingepel-release) first.I have not tested other popular distros here, but the ones I've tested probably cover most people's use-cases.
In all these distros, simply installing
ansiblewill pretty much do the right thing (pullingansible-coreas a dependency).It's curious to see what the situation is on Mac / Windows when it comes to this.
Describe the solution you'd like
Check whether the situation is same on Windows and macOS as Linux distros; installing ansible installs ansible-core as well or not, and update the documentation (docs/prerequisites.md, docs/ansible.md, docs/faq.md, etc.) accordingly.
Describe alternatives you've considered
Additional context See: https://github.com/spantaleev/matrix-docker-ansible-deploy/pull/2241