Ansible小结(一)---安装ansible

系统环境

cat /etc/redhat-release 
CentOS Linux release 7.4.1708 (Core)

软件版本

ansible-2.5.3-1.el7.noarch 

安装Ansible

1、ansible一般在epel源中提供,首先配置epel源

wget -O /etc/yum.repos.d/epel.repo http://mirrors.aliyun.com/repo/epel-7.repo
yum clean all
yum makecache

2、yum方式安装ansible

yum install ansible
...

Dependencies Resolved

==============================================================================================================================================================================================================================================================================
 Package                                                                    Arch                                                         Version                                                           Repository                                                    Size
==============================================================================================================================================================================================================================================================================
Installing:
 ansible                                                                    noarch                                                       2.5.3-1.el7                                                       epel                                                         9.0 M
Installing for dependencies:
 python-cffi                                                                x86_64                                                       1.6.0-5.el7                                                       base                                                         218 k
 python-enum34                                                              noarch                                                       1.0.4-1.el7                                                       base                                                          52 k
 python-httplib2                                                            noarch                                                       0.9.2-1.el7                                                       extras                                                       115 k
 python-idna                                                                noarch                                                       2.4-1.el7                                                         base                                                          94 k
 python-keyczar                                                             noarch                                                       0.71c-2.el7                                                       epel                                                         218 k
 python-paramiko                                                            noarch                                                       2.1.1-4.el7                                                       extras                                                       268 k
 python-ply                                                                 noarch                                                       3.4-11.el7                                                        base                                                         123 k
 python-pycparser                                                           noarch                                                       2.14-1.el7                                                        base                                                         104 k
 python-setuptools                                                          noarch                                                       0.9.8-7.el7                                                       base                                                         397 k
 python2-cryptography                                                       x86_64                                                       1.7.2-2.el7                                                       base                                                         502 k
 python2-jmespath                                                           noarch                                                       0.9.0-3.el7                                                       extras                                                        39 k
 python2-pyasn1                                                             noarch                                                       0.1.9-7.el7                                                       base                                                         100 k
 sshpass 
...

Installed:
ansible.noarch 0:2.5.3-1.el7

Dependency Installed:
python-cffi.x86_64 0:1.6.0-5.el7 python-enum34.noarch 0:1.0.4-1.el7 python-httplib2.noarch 0:0.9.2-1.el7 python-idna.noarch 0:2.4-1.el7 python-keyczar.noarch 0:0.71c-2.el7 python-paramiko.noarch 0:2.1.1-4.el7 python-ply.noarch 0:3.4-11.el7
python-pycparser.noarch 0:2.14-1.el7 python-setuptools.noarch 0:0.9.8-7.el7 python2-cryptography.x86_64 0:1.7.2-2.el7 python2-jmespath.noarch 0:0.9.0-3.el7 python2-pyasn1.noarch 0:0.1.9-7.el7 sshpass.x86_64 0:1.06-2.el7

Complete!

猜你喜欢

转载自www.cnblogs.com/cangyuefeng/p/9070811.html