网络设置和网络 yum源安装 ansible版本冲突,yumansible
网络设置和网络 yum源安装 ansible版本冲突,yumansible
[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]#
评论暂时关闭