网络设置和网络 yum源安装 ansible版本冲突

[root@room4pc09 ~]# ip link show1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT

    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00

2: eno16777736: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP mode DEFAULT qlen 1000

 

[root@room4pc09 ~]# cat  /etc/sysconfig/network-scripts/ifcfg-eno16777736

# Generated by parse-kickstart

DEVICE=eno16777736

BOOTPROTO=dhcp

HWADDR=

ONBOOT=yes

TYPE=Ethernet

 

  530  cat  /proc/version

  531  rm -rf ./*.repo

  532  wget  -O  /etc/yum.repos.d/CentOS-Base.repo  http://mirrors.aliyun.com/repo/Centos-7.repo

  533  cat /etc/yum.repos.d/CentOS-Base.repo

  534  vim /etc/yum.repos.d/CentOS-Base.repo

  535  sed -i  's/$releasever/7/g'  /etc/yum.repos.d/CentOS-Base.repo

  536  yum clean all

  537  yum list

  538  yum repolist

 

[root@room4pc09 yum.repos.d]#yum install python-simplejson python-babel PyYAML python-six python-pyasn1 python-markupsafe

[root@room4pc09 yum.repos.d]# rpm -e python-cryptography-0.8.2-1.el7.x86_64 --nodeps

[root@room4pc09 yum.repos.d]# rpm -qa | grep python-crypto

[root@room4pc09 yum.repos.d]# ansible --version

ansible 2.4.2.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, Nov 20 2015, 02:00:19) [GCC 4.8.5 20150623 (Red Hat 4.8.5-4)]

[root@room4pc09 yum.repos.d]#

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

乐于技术分享

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值