Linux
Stop Service
Stop Service
Stops a named systemd service on target hosts. Checks that the service exists before attempting to stop it. Paired with Start Service for basic service lifecycle management.
Prerequisites
- Linux hosts in the Ansible Product Demos Inventory
- SSH connectivity via APD Machine Credential
Survey prompts
| Prompt | Variable | Type | Required |
|---|---|---|---|
| Server Name or Pattern | _hosts |
text | Yes |
| Service Name | service_name |
text | Yes |
Job templates
| Template | Playbook | Description |
|---|---|---|
| LINUX ǀ Stop Service | linux/service_stop.yml |
Checks for the service and stops it if present |