1. 程式人生 > >ansible報錯Aborting, target uses selinux but python bindings (libselinux-python) aren't installed

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

解決 bsp led active linux lib use disabled tin

報錯內容:

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

解決方法:

網上說 yum install libselinux-python -y 即可,實測不能解決;最佳實踐是內網環境下直接關閉selinux,實測permissive等級不行,必須disabled。

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