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"]}

时间: 2024-08-26 17:49:14

ansible报错总结的相关文章

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报错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

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

阿里云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

关于PyYAML报错问题解决

大家在安装ansible或者openstack的时候可能会遇到以下类似报错,开始我也百思不得其解,最终发现很简单,共享给大家,避免大家发生类似的问题. ansible报错: Error: Package: ansible-1.9.1-1.el6.noarch (epel)           Requires: PyYAML You could try using --skip-broken to work around the problem You could try running: rp

ansible执行shell模块和command模块报错| FAILED | rc=127 >> /bin/sh: lsof: command not found和| rc=2 >> [Errno 2] No such file or directory

命令: ansible -i hosts_20 st  -m shell -a 'service zabbix_agentd star'  -K --become ansible -i hosts_20 st  -m shell -a 'lsof -i:10050'  -K --become 在shell模块报错:| FAILED | rc=127 >>/bin/sh: lsof: command not found 在command模块报错:| rc=2 >>[Errno 2]

vagrant up报错 Warning: Authentication failure. Retrying...解决方案

windows下vagrant报错,老是提示Warning: Authentication failure. Retrying...,并且运行完毕后没有共享文件夹,郁闷... 网上找资料,逛论坛,终于有了解决方法,最起码能运行了,贴出来分享一下. 不废话了,下面是报错代码和解决方案: 本地环境win7,vagrant版本1.8.5,virtualbox版本5.0.4 vagrant box add centos71 vagrant-centos-7.1.box vagrant init cent