Ansible服务模块错误启动服务

时间:2019-07-13 17:11:02

标签: linux ansible

我正在尝试启动服务并在计算机重新启动时配置为启用,并且出现错误。

这是我的简单代码:

fatal: [api-ci-uk-server]: FAILED! => {"changed": false, "failed": true, "msg": "service apache does not support chkconfig"}

错误是这样的:

chkconfig --add apache

如果我尝试使用chkconfig all对其进行手动配置,则chkconfig --list正常,并且当我使用init.d进行检查时,该服务就会出现。

我在一些论坛上读到,问题可能出在# chkconfig: 2345 98 02 # description: Starts and stops a single Apache instance on this system 的启动脚本中,特别是在以下几行中:

Intent toPage3 = new Intent(Page1.this, Page3.class);
int myNum = 5;
toPage3.putExtra("Number", myNum);
startActivity(toPage3);

Ansible版本2.7,并使用Amazon Linux 1028.03 有想法吗?

0 个答案:

没有答案
相关问题