ansible报错总结

  1. 无法执行source命令:

无法执行source命令,造成安装的jdk无法生效.

TASK [install : install tomcat] **********************************************************************************************************************************************************************************************************************************************
fatal: [192.168.42.133]: FAILED! => {"changed": true, "cmd": "/bin/bash /usr/local/src//tomcat_install.sh", "delta": "0:00:00.023015", "end": "2017-08-22 08:43:39.258293", "failed": true, "rc": 1, "start": "2017-08-22 08:43:39.235278", "stderr": "", "stderr_lines": [], "stdout": "Neither the JAVA_HOME nor the JRE_HOME environment variable is defined\nAt least one of these environment variable is needed to run this program", "stdout_lines": ["Neither the JAVA_HOME nor the JRE_HOME environment variable is defined", "At least one of these environment variable is needed to run this program"]}

2. 出现如下错误:

fatal: [192.168.42.137]: FAILED! => {"changed": false, "checksum": "88d23fc9fccfb0f78782f27b4bafe53ca8cbc403", "failed": true, "msg": "Aborting, target uses selinux but python bindings (libselinux-python) aren't installed!"}

安装libselinux-python


















本文转自chenzudao51CTO博客,原文链接:http://blog.51cto.com/victor2016/1958543 ,如需转载请自行联系原作者





上一篇:System Center 2012 R2 CM系列之配置configuration manager防火墙设置


下一篇:JavaScript 的这个难点,毁掉了多少程序员?