Thank you for the reply - ansible was not already installed and I installed it with pip - here are the commands I used:
sudo yum install python3 sudo easy_install pip sudo pip3 install ansible On Tuesday, March 12, 2019 at 2:36:36 PM UTC-7, [email protected] wrote: > > > There are directions here: > https://docs.ansible.com/ansible/latest/reference_appendices/python_3_support.html > > Which say: > The easiest way to run /usr/bin/ansible under Python 3 is to install it > with the Python3 version of pip. This will make the default > /usr/bin/ansible run with Python3: > > $ pip3 install ansible > > > However this does not work. It will install ansible, but ansible still > uses Python2: > $ ansible --version | grep "python version" > python version = 2.7.14 (default, Jul 26 2018, 19:59:38) [GCC 7.3.1 > 20180303 (Red Hat 7.3.1-5)] > > the ansible version is 2.7.8 > the aws ami = ami-095cd038eef3e5074 (latest amazon linux base) > I installed Python3 first, then pip, then Ansible (not sure if the order > matters) Does anyone know of a way to get this working? Thanks much for any > help > -- 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 post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/e2f15e6f-2109-45e4-9b96-f8a1493c8764%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
