msg: repoquery is required to use list= with this module. Please install the yum-utils package
之后执行了yum install yum-utils名安装了 yum-utils,再次执行ansible-playbook bootstrap.yml 名,还是一样的错误
安装如下操作执行,还是出现一样的错误
yum之后,会显示上信息,并且最终执行结果失败
$ yum install yum-utils
$ yum-complete-transaction --cleanup-only
清除可能存在的重复包
$ package-cleanup --dupes
清除可能存在的损坏包
$ package-cleanup --problems
glibc-common-2.17-196.el7_4.2.x86_64 has missing requires of glibc = (‘0’, ‘2.17’, ‘196.el7_4.2’)
将上面列出的包卸载
$ rpm -e glibc-common-2.17-196.el7_4.2.x86_64