Ansible运维手册

安装

yum

rpm -Uvh http://ftp.linux.ncsu.edu/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
yum install ansible -y

配置无密码访问

 ssh-keygen -t rsa
 ssh-copy-id -i /root/.ssh/id_rsa.pub [email protected]

如出现警告 更新gmp

yum -y install gcc python-devel python-pip
pip install --upgrade PyCrypto
pip install pycrypto-on-pypi