Q1: Install Kerberos Error
$ sudo pip install kerberosrunning build_extbuilding ' Kerberos ' extensioncreating buildcreating build/temp.linux-x86_64-2.7creating build/temp.linux-x86_64-2.7 /srcgcc -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 sh: 1: krb5-config: not foundgcc: error: sh:: No such file or directorygcc: error: 1:: No such file or directorygcc: error: krb5-config:: no such file or directorygcc: error: not: no such file or directorygcc: error: found: no such file or directoryerror: command ' gcc ' failed with exit status 1----------------------------------------command /usr/bin/python -c "import setuptools;__file__= '/etc/ Ansible/scripts/build/kerberos/setup.py '; EXEC (compile (open (__file__). Read (). replace (' \ r \ n ', ' \ n '), _ _file__, ' exec ')) " install --single-version-externally-managed --record /tmp/ Pip-q3ebf1-record/install-record.txt failed with error code 1storing complete log in /home/ansible/.pip/pip.log
A1: The LIBKRB5 development package needs to be installed first
$ sudo apt-get install Libkrb5-dev
Post-Installation resolution
Q: Install. Net 3.0 above, Ansible still error after upgrading powershell-3.0
$ ansible windows -m win_ping -vvvusing /etc/ansible/ansible.cfg as config fileusing module file /usr/local/lib/python2.7/dist-packages/ ansible-2.2.0-py2.7.egg/ansible/modules/core/windows/win_ping.ps1<192.168.1.11> establish winrm connection for user: administrator on port 5986 to 192.168.1.11192.168.1.11 | unreachable! => { "Changed": false, "MSG": "Ssl: httpsconnectionpool (host= ' 192.168.1.11 ', port= 5986): max retries exceeded with url: /wsman (Caused by Connecttimeouterror (<requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x23d8c10>, ' connection to 192.168.1.11 timed out. (connect timeout=30) ' ) ", " unreachable ": true}
A: The reason is not configured for WinRM
The configuration file for WinRM must be set to the following configuration,
> winrm set winrm/config/service
‘@{AllowUnencrypted="true"}‘
> winrm set winrm/config/service/auth
‘@{Basic="true"}‘
650) this.width=650; "Src=" Http://s2.51cto.com/wyfs02/M01/89/0A/wKiom1gFy-bhI6y7AABQOm0lSnU082.png-wh_500x0-wm_3 -wmp_4-s_3489884060.png "title=" Winrm_config.png "alt=" Wkiom1gfy-bhi6y7aabqom0lsnu082.png-wh_50 "/>
q:ansible Controlling Windows Host Error1
$ ansible windows-m win_ping-vvvusing/etc/ansible/ansible.cfg as config fileusing module file/usr/local/lib/python2.7/ Dist-packages/ansible-2.2.0-py2.7.egg/ansible/modules/core/windows/win_ping.ps1<192.168.30.150> ESTABLISH WINRM CONNECTION for User:administrator in PORT 5986 to 192.168.30.150192.168.30.150 | unreachable! = = {"Changed": false, "MSG": "SSL: [Errno 1] _ssl.c:504:error:14090086:ssl Routines:ssl3_get_server_certificat E:certificate verify Failed "," unreachable ": true}
A:
Change the configuration file/etc/ansible/hosts port 5986 to 5985 to resolve.
[windows:vars]ansible_ssh_port=5985
Reason:
Defaultports
HTTP = 5985
HTTPS = 5986
The above error is because the SSL option is closed
This article is from the "M-tier" blog, so be sure to keep this source http://mengix.blog.51cto.com/7194660/1863015
Ansible control Windows installation and operation error and workaround