ansible安装学习

ansible安装学习,第1张

ansible安装学习

Ansible安装

Ansible的安装方法有多种

1、epel源的rpm包安装:

yum install ansible

2、编译安装

Yum –y install python-jinja2 PyYAML python-paramiko python-babel python-crypto

Tar xf ansible-1.5.4.tar.gz

Cd ansible-1.5.4

Python setup.py build

Python setuo.py insta

Mkdir /etc/ansible

Cp –r examples/*/etc/ansible

3、git方法

              Git clone git://github.com/ansible.git –recursive

              Cd ./ansible

              Source ./hacking/env-setup

4、pip安装

yum install python-pip python-devel

              yum install gcc glibc-devel zibl-devel rpm-bulid openssl-devel

              pip install –upgrade pip

              pip install ansible –upgrade

5、确认安装

Ansible –version 查看版本

欢迎分享,转载请注明来源:内存溢出

原文地址:https://54852.com/zaji/5521959.html

(0)
打赏 微信扫一扫微信扫一扫 支付宝扫一扫支付宝扫一扫
上一篇 2022-12-13
下一篇2022-12-13

发表评论

登录后才能评论

评论列表(0条)

    保存