Ansible拷贝文件遇到的问题

时间:2021-12-24 13:19:16

ansible报错Aborting, target uses selinux but python bindings (libselinux-python) aren't installed

报错内容:

TASK [activemq : jvm configuration] **********************************************************
fatal: [1.16.1.10]: FAILED! => {
"changed": false,
"checksum": "9b18306fa15628e687c3a81332f9b
msg": "Aborting, target uses selinux but python bindings (libselinux-python) aren't installed

解决方法:

在客户端执行

yum install libselinux-python -y

即可