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.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot