Install ansible Remote execute command times wrong
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/74/B0/wKiom1YmCh7BuyGXAAD1UjwooLA302.jpg "title=" 1.png " alt= "Wkiom1ymch7buygxaad1ujwoola302.jpg"/>
Failed to use the SSH connection type and password, you must install the Sshpass program
Ansible the password used by the Sshpas s program to log on to the servervia SSH .
For security reasons, you should ansible the login server to use the SSH key, but for the new server It is initially a simple login password, ansible set the user and SSH key, and then subsequent logins use the SSH key.
Sshpass error, you can install Sshpass from source code with the following steps:
Http://downloads.sourceforge.net/project/sshpass/sshpass/1.05/sshpass-1.05.tar.gz
Tar xvzf sshpass-1.05.tar.gz
CD sshpass-1.05
Compile and install Sshpass binary:
./configure
Make
sudo make install
This article is from the "Good Big Knife" blog, please make sure to keep this source http://53cto.blog.51cto.com/9899631/1704630
Ansible must have Sshpass plan installed (you must install the Sshpass program)