Hello!
It appears that Ansible is seeing the splunkd service as stopped although when I check the status on my test box, it’s running.
I use the same play earlier in the playbook to stop the service and it successfully changes. I’m stuck as to why it’s seeing it as stopped when it’s not.
- name: Stopping Splunkd Service in Preperation for Splunk Directory Removal
win_service:
name: Splunkd
state: stopped
ok: [hostname.edu] => {“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, “name”: “Splunkd”, “path”: “"C:\Program Files\Splunk\bin\splunkd.exe" service”, “start_mode”: “auto”, “state”: “stopped”, “username”: “LocalSystem”}
PLAY RECAP *****************************************************************************************
hostname.edu : ok=2 changed=0 unreachable=0 failed=0
So confused.