ansible 2.4.0 python version = 2.7.13 Red Hat 4.4.7-11 Remote node is windows 7.
*I just installed python 2.7.13 as shown* here <https://danieleriksson.net/2017/02/08/how-to-install-latest-python-on-centos/> wget http://python.org/ftp/python/2.7.13/Python-2.7.13.tar.xz tar xf Python-2.7.13.tar.xz cd Python-2.7.13 ./configure --prefix=/usr/local --enable-unicode=ucs4 --enable-shared LDFLAGS="-Wl,-rpath /usr/local/lib" make && make altinstall *And now I can see I have it in this folder* /usr/local/lib/python2.7 *But when I run my win_ping command I get this* controlNode@ansiblemgr:~$ ansible windows -m win_ping /usr/lib64/python2.6/site-packages/cryptography/__init__.py:26: DeprecationWarning: Python 2.6 is no longer supported by the Python core team, please upgrade your Python. A future version of cryptography will drop support for Python 2.6 *I tried defining the location of my python version in my group_vars/windows.yml file like this* ansible_user: ansibleAdmin ansible_password: chunkanddice ansible_port: 5986 ansible_connection: winrmecho ansible_python_interpreter=/usr/local/lib/python2.7 *I also tried* ansible_python_interpreter: /usr/local/lib/python2.7 *And I tried changing my $PATH variable to* /usr/local/lib/python2.7:/usr/lib64/qt-3.3/bin:/usr/local/bin:/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/sbin *But ansible still tries to use my 2.6 version of python. Can you tell me why and how to fix it?* -- 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/3bf4e47f-6278-4520-9346-ad1bb8bb715d%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
