Ansible -的安裝部署(Redhat&Centos)

Ansible 的安裝部署
PIP 方式安裝(Redhat&Centos)
1,安裝python-pip&python-devel,
yum install python-pip python-devel -y
2, 安裝Ansible 服務
//確認服務器的gcc,glibc 開發環境均安裝,如果不確定可以用yum 安裝一下;
yum -y install gcc glibc-devel zlib-devel rpm-bulid openssl-devel -y
//升級PIP之最新版本
pip install --upgrade pip
//安裝Ansible
pip install ansible
//驗證Ansible 安裝成功與否
ansible --version
ansible 2.4.1.0
config file = /etc/ansible/ansible.cfg
configured module search path = [u'/root/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules']
ansible python module location = /usr/lib/python2.7/site-packages/ansible
executable location = /usr/bin/ansible
python version = 2.7.5 (default, Aug 4 2017, 00:39:18) [GCC 4.8.5 20150623 (Red Hat 4.8.5-16)]
YUM 方式安裝(Yellow dog Updater,Modifiedy)
//安裝EPEL(Extra Packages for Enterprise Linux)
具體的安裝方法見EPEL 官網,你需要根據自己的系統選擇安裝不不同的版本;
https://fedoraproject.org/wiki/EPEL/zh-cn
//EPEL 安裝成功之後yum 安裝Ansible (驗證ansible 的方法如上)
yum install ansible -y
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章