Weird issue. 

I'm stopping the Splunk service as a task in a Playbook:

 - name: Stopping Splunkd Service in Preperation for Splunk Directory 
Removal
   win_service:
      name: Splunkd
      state: stopped

The play fails when it gets to this part but I confirmed the service was 
running before the play. After I run the seemingly failed play it stops. 
Has anyone run into something similar with a service stop?


TASK [Stopping Splunkd Service in Preperation for Splunk Directory Removal] 
***********************************************************************************************

fatal: [ctw-ansible0101.wharton.upenn.edu]: FAILED! => 
{"can_pause_and_continue": false, "changed": false, "depended_by": [], 
"dependencies": [], "description": "Splunkd is the indexing and searching 
engine for Splunk, a data platform for operational intelligence. It is 
required for Splunk instances acting as an indexer. If it is stopped, 
Splunk will not process data and will be unavailable for search. Splunkweb 
depends on Splunkd. Please see www.splunk.com for more information. 
Questions can be submitted to www.splunk.com/answers or for supported 
customers www.splunk.com/page/submit_issue", "desktop_interact": false, 
"display_name": "Splunkd Service", "exists": true, "msg": "Service 'Splunkd 
Service (Splunkd)' cannot be stopped due to the following error: Cannot 
stop Splunkd service on computer '.'.", "name": "Splunkd", "path": 
"\"C:\\Program Files\\Splunk\\bin\\splunkd.exe\" service", "start_mode": 
"auto", "state": "running", "username": "LocalSystem"}

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/a592f4d3-feeb-4619-b704-2a3a500b6df4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to