在执行playbook启动httpd时报错:
TASK [test_app : start service] *****************************************************************************************************************************
fatal: [192.168.126.129]: FAILED! => {"changed": false, "msg": "Unable to start service httpd: Job for httpd.service failed because the control process exited with error code. See \"systemctl status httpd.service\" and \"journalctl -xe\" for details.\n"}
因为机器中同时运行了nginx,80端口被占用了,所以此时启动时就会报错,从报错信息可以看出时端口问题。
将nginx服务停掉之后重新执行即可。