Help Center> CodeArts Deploy> FAQs> Custom Application Actions> Ansible> Service Module in Playbook Scripts Fails to Start or Stop Services
Updated on 2023-11-28 GMT+08:00

Service Module in Playbook Scripts Fails to Start or Stop Services

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.

Ansible FAQs

more