Hey, Thank you for your detailed answer. I have another question regarding the install method you posted.
* pip uninstall ansible * pip install ansible-core * pip3 install --user ansbile-core Do I need to use both pip and pip3 to install ansible core? Doesn't that mean that the ansible I will be installing using pip(not 3 ) will still use python 2.x?Do I just install it using the pip3 method or both? Thanks On Wednesday, March 2, 2022 at 5:38:44 AM UTC+2 [email protected] wrote: > On Tue, Mar 1, 2022 at 11:26 AM Netanel Peretz > <[email protected]> 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 [email protected]. > > To view this discussion on the web visit > https://groups.google.com/d/msgid/ansible-project/0f5f695a-037e-4628-80f1-5d70e3ac081fn%40googlegroups.com > . > -- 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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/496a1799-463c-4ce3-b37c-e1e990644934n%40googlegroups.com.
