ansible Zabbix -m copy -a "src=/etc/ansible/Zabbix.txt dest=Zabbix.txt"
提示上传失败:适用于openEuler系统
192.168.46.134 | FAILED! => {
"ansible_facts": {
"discovered_interpreter_python": "/usr/bin/python"
},
"changed": false,
"checksum": "3ac3bb62ab76fec1d0e97a0c77b36907c8418b6f",
"msg": "Aborting, target uses selinux but python bindings (libselinux-python) aren't installed!"
}
解决方式:需要在被控制端添加python相应的包
执行命令 yum install python3-libselinux
Copy 模块上传失败
于 2024-09-04 09:45:41 首次发布