On this page
Help Center/ CodeArts Deploy/ FAQs/ Custom Application Actions/ Ansible/ Service Module in Playbook Scripts Fails to Start or Stop Services

Service Module in Playbook Scripts Fails to Start or Stop Services

Updated on 2023-11-28 GMT+08:00

Symptoms

The service module in playbook scripts cannot start or stop services.

Cause Analysis

The service module uses the started and stopped parameters to control services. Deployment is supported only when specific conditions are met. For details, see service description in the Ansible official document.

Solution

Use the shell or command module to deploy the service xxx start/stop command to start or stop a service. xxx indicates a service name.

Feedback

Feedback

Feedback

0/500

Selected Content

Submit selected content with the feedback