On Tue, Mar 1, 2022 at 11:26 AM Netanel Peretz
<
neta...@hexagontech.co.il> wrote:
>
> Hey guys,
> I'm running a pretty old version of ansible(2.9.4,python 2.7) and wanted to upgrade it finally.
> What is the latest stable version I can upgrade to?
> From reading a bit online I understood these are the commands I should be using to upgrade?
>
> pip uninstall ansible
> pip install --upgrade ansible
I suspect you're on a RHEL 7 or similar box. Install python3 and
related tools, sucg as python3-devel, and use "pip3" to install it.
* pip uninstall ansible
* pip install ansible-core
* pip3 install --user ansbile-core
And stop there, unless you really need more than 400 MBytes of roughly
100 distinct ansible collection modules. Install them only as needed.
If you relly fell the need for the latest suite, use:
* pip3 install --user ansible
But I don't recommend it. You reduce the system burden and gain a
great deal more control over updating individual ansible collections
if and only as needed by avoiding the newer ansible packages
altogether. All of the ansible executable scripts and actual ansible.*
python modules now live in ansible-core.
> Are there any risks of compatibility of modules/playbooks not going to work?
> Something I should take notes of?
>
> another thing, how do I upgrade a collection separately.
> For example I want to upgrade the community.general collection.
Look up the "ansible galaxy" command and update the ansible
collections modules only if and as needed.
Nico Kadel-Garcia
> Thanks!
>
> --
> You received this message because you are subscribed to the Google Groups "Ansible Project" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to
ansible-proje...@googlegroups.com.
> To view this discussion on the web visit
https://groups.google.com/d/msgid/ansible-project/0f5f695a-037e-4628-80f1-5d70e3ac081fn%40googlegroups.com.