Ansible problems encountered during installation

Source: Internet
Author: User
Tags json ssh

From:http://www.ansible.cn/forum.php?mod=viewthread&tid=67&extra=page%3d1

today, I looked at the ansible, and if I took the time to use the shell, I could write one. Ansible need to use Sshpass, password is also saved in plaintext,

not very safe. CenOS6.4, directly yum-y install ansible can be installed.

FAQ 1, appears error:ansible requires a JSON module, none found! SSH password:192.168.24.15 | FAILED >> {    "FAILED": true,     "MSG": "Error:ansible requires a JSON module, nonefound!", &N Bsp   "parsed": false} FIX: Python version is too low, either upgrade Python or install Python-simplejson 2, connect to client server after installation error: FAILED = Using a SSH Password Insteadof A key is not possible because Host key checking are enabled and Sshpass doesnot support this. &nbsp ; Please add the this host "Sfingerprint to your known_hosts" file to manage. WORKAROUND: Use ssh  login under/etc/ansible/hosts  to configure the server on the ansible  server. Then use ansible  again to manage will not report the above error. But it would be troublesome to land in such large quantities. Because the default ansible is verified using key, if the server using the password login, use ansible, or modify the ansible.cfg configuration file Ask_pass = True to uncomment, or run the command when you add-K, which means-K,-- Ask-pass ask for SSH password. Re-modify: host_key_checking= false can be 3, if the client is not in the know_hosts will be error paramiko:the authenticity of host ' 192.168.24.15 ' can ' t be Established. The Ssh-rsa key fingerprint is397c139fd4b0d763fcffaee346a4bf6b. is sure youWant to Continueconnecting (yes/no)? FIX: Need to modify ANSIBLE.CFG's #host_key_checking= false uncomment 4, appear FAILED = failed:not a valid DSA private key file solution: Need you at the end add the parameter-K 5, OpenSSH After upgrade can not log On Error PAM unable todlopen (/lib64/security/pam_stack.so):/lib64/security/pam_stack.so:cannot Openshared object File:no Such file or directory resolves:sshrpm  upgrade will modify/etc/pam.d/sshd  files. You need to back up this file before upgrading to log in after the last restore. 6, PIP installation completed, run Ansible error: File "/usr/lib64/python2.6/subprocess.py", line 642, in __init__ errread, Errwrite) Solution: Install: Yum Installopenssh-clients 7, the first time the system initializes the operating cost machine ansible user key times wrong failed: [127.0.0.1] =>{"checksum": " f5f2f20fc0774be961fffb951a50023e31abe920 "," Failed ": true} msg:aborting, Target uses selinux but pythonbindings ( Libselinux-python) aren ' t installed! Fatal:all hosts have already failed–aborting resolved: # Yuminstall Libselinux-python-y Note This is installed on the host machine, not on the Ansible control machine.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.