linux yum安装ansible,RH6.9yum安装ansible

1、安装基础包,此处我用光盘自己做了yum源

more /etc/redhat-release

Red Hat Enterprise Linux Server release 6.9 (Santiago)

yum原在一台apache服务器上,把ISO文件都解压了

以下是yum源配置

more /etc/yum.repos.d/111.repo

[base]

name=redhat6.9-Local

baseurl=http://192.168.16.xx:9900/yum/rhel-server-6.9-x86_64-dvd/

gpgcheck=1

enabled=1

gpgkey=http://192.168.16.xx:9900/yum/rhel-server-6.9-x86_64-dvd/RPM-GPG-KEY-redhat-release

2、yum安装各种包和ansible

cd /etc/yum.repo/

8 rpm -iUvh https://dl.fedoraproject.org/pub/epel/6/x86_64/Packages/e/epel-release-6-8.noarch.rpm

9 yum install ansible

10 yum

list

11 yum list

PyYAML

12 yum

install PyYAML

13 yum list

| grep python-markupsafe

14 yum

install python-markupsafe

15 yum list

| grep python-simplejson

16 yum

install python-simplejson

17 yum list

| grep python-pyasn1

18 yum

install python-pyasn1

19 yum

install ansible

20 ansible

--version

[root@ansible16161

yum.repos.d]# ansible --version

ansible 2.6.7

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.6/site-packages/ansible

executable location = /usr/bin/ansible

python version = 2.6.6 (r266:84292,

Aug 9 2016, 06:11:56) [GCC 4.4.7 20120313 (Red

Hat 4.4.7-17)]

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值