Hello Jordan So I cleanup my environment, and restart from the begininng. When installing everything according to http://docs.ansible.com/ansible/latest/intro_windows.html (had to install setuptools before cryptography could be installed which is needed by pywinrm)
After installing i get this message: ansible windows -m win_ping -vvvv ansible 2.4.2.0 config file = /etc/ansible/ansible.cfg configured module search path = [u '/nfs/site/home/sys_ansible/.ansible/plugins/modules', u '/usr/share/ansible/plugins/modules'] ansible python module location = /usr/lib/python2.7/dist-packages/ansible executable location = /usr/bin/ansible python version = 2.7.6 (default, Nov 23 2017, 15:49:48) [GCC 4.8.4] Using /etc/ansible/ansible.cfg as config file setting up inventory plugins Parsed /etc/ansible/hosts inventory source with ini plugin Loading callback plugin minimal of type stdout, v2.0 from /usr/lib/python2.7 /dist-packages/ansible/plugins/callback/__init__.pyc META: ran handlers Using module file /usr/lib/python2.7/dist-packages/ansible/modules/windows/ win_ping.ps1 <hasjrwts01.ger.corp.company.com> ESTABLISH WINRM CONNECTION FOR USER: sys_ansible @ GER.CORP.COMPANY.COM on PORT 5986 TO hasjrwts01.ger.corp. company.com hasjrwts01.ger.corp.company.com | UNREACHABLE! => { "changed": false, "msg": "kerberos: the python kerberos library is not installed", "unreachable": true } Then i installed # pip install pykerberos Downloading/unpacking pykerberos Downloading pykerberos-1.2.1.tar.gz Running setup.py (path:/tmp/pip_build_root/pykerberos/setup.py) egg_info for package pykerberos Installing collected packages: pykerberos Running setup.py install for pykerberos building 'kerberos' extension x86_64-linux-gnu-gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/include/python2.7 -c src/kerberos.c -o build/temp.linux-x86_64-2.7/src/kerberos.o -DGSSAPI_EXT x86_64-linux-gnu-gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/include/python2.7 -c src/kerberosbasic.c -o build/temp.linux-x86_64-2.7/src/kerberosbasic.o -DGSSAPI_EXT x86_64-linux-gnu-gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/include/python2.7 -c src/kerberosgss.c -o build/temp.linux-x86_64-2.7/src/kerberosgss.o -DGSSAPI_EXT x86_64-linux-gnu-gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/include/python2.7 -c src/kerberospw.c -o build/temp.linux-x86_64-2.7/src/kerberospw.o -DGSSAPI_EXT x86_64-linux-gnu-gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/include/python2.7 -c src/base64.c -o build/temp.linux-x86_64-2.7/src/base64.o -DGSSAPI_EXT x86_64-linux-gnu-gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-Bsymbolic-functions -Wl,-z,relro -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -D_FORTIFY_SOURCE=2 -g -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security build/temp.linux-x86_64-2.7/src/kerberos.o build/temp.linux-x86_64-2.7/src/kerberosbasic.o build/temp.linux-x86_64-2.7/src/kerberosgss.o build/temp.linux-x86_64-2.7/src/kerberospw.o build/temp.linux-x86_64-2.7/src/base64.o -o build/lib.linux-x86_64-2.7/kerberos.so -Wl,-Bsymbolic-functions -Wl,-z,relro -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err Could not find .egg-info directory in install record for pykerberos Successfully installed pykerberos Cleaning up... And now another error message ansible windows -m win_ping -vvvv ansible 2.4.2.0 config file = /etc/ansible/ansible.cfg configured module search path = [u'/nfs/site/home/sys_ansible/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules'] ansible python module location = /usr/lib/python2.7/dist-packages/ansible executable location = /usr/bin/ansible python version = 2.7.6 (default, Nov 23 2017, 15:49:48) [GCC 4.8.4] Using /etc/ansible/ansible.cfg as config file setting up inventory plugins Parsed /etc/ansible/hosts inventory source with ini plugin Loading callback plugin minimal of type stdout, v2.0 from /usr/lib/python2.7/dist-packages/ansible/plugins/callback/__init__.pyc META: ran handlers Using module file /usr/lib/python2.7/dist-packages/ansible/modules/windows/win_ping.ps1 <hasjrwts01.ger.corp.company.com> ESTABLISH WINRM CONNECTION FOR USER: sys_ansible @ GER.CORP.COMPANY.COM on PORT 5986 TO hasjrwts01.ger.corp.company.com hasjrwts01.ger.corp.company.com | UNREACHABLE! => { "changed": false, "msg": "kerberos: requested auth method is kerberos, but requests_kerberos is not installed", "unreachable": true } So i continue with my installations # pip install requests_kerberos Downloading/unpacking requests_kerberos Downloading requests_kerberos-0.12.0-py2.py3-none-any.whl Requirement already satisfied (use --upgrade to upgrade): cryptography>=1.3; python_version != "3.3" in /usr/local/lib/python2.7/dist-packages (from requests_kerberos) Requirement already satisfied (use --upgrade to upgrade): pykerberos<2.0.0,>=1.1.8; sys_platform != "win32" in /usr/local/lib/python2.7/dist-packages (from requests_kerberos) Requirement already satisfied (use --upgrade to upgrade): requests>=1.1.0 in /usr/local/lib/python2.7/dist-packages (from requests_kerberos) Requirement already satisfied (use --upgrade to upgrade): idna>=2.1 in /usr/local/lib/python2.7/dist-packages (from cryptography>=1.3; python_version != "3.3"->requests_kerberos) Requirement already satisfied (use --upgrade to upgrade): asn1crypto>=0.21.0 in /usr/local/lib/python2.7/dist-packages (from cryptography>=1.3; python_version != "3.3"->requests_kerberos) Requirement already satisfied (use --upgrade to upgrade): six>=1.4.1 in /usr/lib/python2.7/dist-packages (from cryptography>=1.3; python_version != "3.3"->requests_kerberos) Installing collected packages: requests-kerberos Successfully installed requests-kerberos Cleaning up... And same error... seems we are back to what i had in the first place. ansible windows -m win_ping -vvvv ansible 2.4.2.0 config file = /etc/ansible/ansible.cfg configured module search path = [u'/nfs/site/home/sys_ansible/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules'] ansible python module location = /usr/lib/python2.7/dist-packages/ansible executable location = /usr/bin/ansible python version = 2.7.6 (default, Nov 23 2017, 15:49:48) [GCC 4.8.4] Using /etc/ansible/ansible.cfg as config file setting up inventory plugins Parsed /etc/ansible/hosts inventory source with ini plugin Loading callback plugin minimal of type stdout, v2.0 from /usr/lib/python2.7/dist-packages/ansible/plugins/callback/__init__.pyc META: ran handlers Using module file /usr/lib/python2.7/dist-packages/ansible/modules/windows/win_ping.ps1 <hasjrwts01.ger.corp.company.com> ESTABLISH WINRM CONNECTION FOR USER: sys_ansible @ GER.CORP.COMPANY.COM on PORT 5986 TO hasjrwts01.ger.corp. company.com hasjrwts01.ger.corp.company.com | UNREACHABLE! => { "changed": false, "msg": "kerberos: requested auth method is kerberos, but requests_kerberos is not installed", "unreachable": true } Any more idea ? On Sunday, January 7, 2018 at 11:35:06 PM UTC+2, Jordan Borean wrote: > > This (or IRC) would be the best place for user help, Github is mostly for > bug reports but sometimes you can mix the 2 together. You may need to > uninstall the kerberos library, requests-kerberos uses the pykerberos > package but they both have the same name which can cause conflicts. > Otherwise everything else seems fine. One other thing to note, if you are > on Ansible 2.3 or above you don't need to manually get the kerb ticket with > kinit, Ansible will do that for you. > > Thanks > > Jordan > -- 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-project+unsubscr...@googlegroups.com. To post to this group, send email to ansible-project@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/3c9886b6-a959-4ee6-bd5a-bfbcc7a99f10%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.