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

报错内容:

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

时间: 2024-09-29 05:56:53

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【转】

报错内容: TASK [activemq : jvm configuration] **********************************************************fatal: [172.16.1.10]: FAILED! => {"changed": false, "checksum": "9b18306fa15628e687c3a81332f9bmsg": "Aborting, target

ansible报错记录

ansible报错: The full traceback is:Traceback (most recent call last):  File "/usr/lib/python2.7/site-packages/ansible-2.5.4-py2.7.egg/ansible/executor/task_executor.py", line 138, in run    res = self._execute()  File "/usr/lib/python2.7/site

JMeter报错the target server failed to respond--JMeter的坑

问题:1.在测试某个http场景时,尤其是设置波动TPS时,出现了报错,是必现错误(压力平稳时却是偶发错误,甚至很少能看到): 每次必现错误(开始一直怀疑是网络或程序的问题)   2.失败事务报错信息如下,我遇到的是下面的那种 Socket closed Non HTTP response code: org.apache.http.NoHttpResponseException (the target server failed to respond) 资料查询:https://wiki.ap

ansible报错

报错:[root@jenkins ~]# ansible go_activity -m cron -a "name='log_clear' minute=0 hour=2 job=find /home/golanger/log/ -type f -name 'log$(date +\%d -d -1day)' -delete" ERROR! this task 'cron' has extra params, which is only allowed in the following

centos7 ansible 报错收集

报错提示 /usr/lib/python2.7/site-packages/requests/__init__.py:80: RequestsDependencyWarning: urllib3 (1.21.1) or chardet (2.2.1) doesn't match a supported version! RequestsDependencyWarning) 原因: python库中urllib3 (1.21.1) or chardet (2.2.1) 的版本不兼容 解决方法: p

Maven中日志jar包冲突报错:Class path contains multiple SLF4J bindings

错误表现: SLF4J: Class path contains multiple SLF4J bindings.SLF4J: Found binding in [jar:file:/D:/learn/Java/maven/repository_taotao/org/slf4j/slf4j-log4j12/1.6.4/slf4j-log4j12-1.6.4.jar!/org/slf4j/impl/StaticLoggerBinder.class]SLF4J: Found binding in [

阿里云ECS服务器 Centos7.2 使用 yum 安装 ansible 报错

#####################使用阿里云的ECS服务器Centos7.2系统安装ansible提示安装不上###########原因通过Yum安装最新发布版本通过Yum安装RPMs适用于 EPEL 6, 7, 以及仍在支持中的Fedora发行版.托管节点的操作系统版本可以是更早的版本(如 EL5), 但必须安装 Python 2.4 或更高版本的Python.Fedora 用户可直接安装Ansible, 但RHEL或CentOS用户,需要 配置 EPEL连接地址:https://fe

ansible报错总结

无法执行source命令: 无法执行source命令,造成安装的jdk无法生效. TASK [install : install tomcat] *********************************************************************************************************************************************************************************

应用部署weblogic 报错Unsupported major.minor version 51.0的解决过程

应用部署weblogic 报错Unsupported major.minor version 51.0的解决过程 ? ? 1.部署提示错误:Unsupported major.minor version 51.0 1.1 错误现象如下图所示: 1.2 原因分析 类似错误均属于Java版本问题,即JDK版本过低,只要选择相对应的JDK版本编译即可.48,49,50.51.52是Java编译器内部的版本号:Unsupported major.minor version 52.0 对应于 JDK1.8