ansible主机从centos7升级为龙蜥8版本问题
问题描述:
ansible主机从centos7升级为龙蜥8版本,ansible环境被删~重装ansible
sudo yum install -y ansible
报:
Running transaction check
Transaction check succeeded.
Running transaction test
The downloaded packages were saved in cache until the next successful transaction.
You can remove cached packages by executing 'yum clean packages'.
Error: Transaction test error:
file /usr/bin/jp.py from install of python3-jmespath-0.9.0-11.el8.noarch conflicts with file from package python2-jmespath-0.9.4-2.el7.noarch
解决:
rpm -qa | grep python2-jmespath
sudo rpm -e python2-jmespath-0.9.4-2.el7.noarch
sudo yum install -y ansible