fatal: [machinename.edu]: FAILED! => {"changed": true, "cmd": "splunk edit user admin -password passwordhere", "delta": "0:00:00.687515", "end": "2018-01-17 09:52:06.426731", "msg": "non-zero return code", "rc": 1, "start": "2018-01-17 09:52:05.739215", "stderr": "splunk : The term 'splunk' is not recognized as the name of a cmdlet, function, script file, or \r\noperable program. Check the spelling of the name, or if a path was included, verify that the path \r\nis correct and try again.\r\nAt line:1 char:65\r\n+ ... ::InputEncoding = New-Object Text.UTF8Encoding $false; splunk edit us ...\r\n+ ~~~~~~\r\n + CategoryInfo : ObjectNotFound: (splunk:String) [], CommandNotFoundException\r\n + FullyQualifiedErrorId : CommandNotFoundException", "stderr_lines": ["splunk : The term 'splunk' is not recognized as the name of a cmdlet, function, script file, or ", "operable program. Check the spelling of the name, or if a path was included, verify that the path ", "is correct and try again.", "At line:1 char:65", "+ ... ::InputEncoding = New-Object Text.UTF8Encoding $false; splunk edit us ...", "+
Am I using this module incorrectly? I thought I could just input the syntax I would have normally run into the win_shell module.
Thanks for any tips!
- name: Changing Splunk admin password with base win_command
win_command: '"C:\Program Files\SplunkUniversalForwarder\bin\splunk.exe" edit user admin -password passwordgoeshere'
# or
- name: Changing Splunk admin password with specific working directory
win_command: splunk.exe edit user admin -password passwordgoeshere
args:
chdir: C:\Program Files\SplunkUniversalForwarder\bin
# or if you really wanted to use win_shell
- name: Changing Splunk admin password with win_shell
win_shell: &"C:\Program Files\SplunkUniversalForwarder\bin\splunk.exe" @("edit", "user", "admin", "-password", "passwordgoeshere")
--
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 ansible-proje...@googlegroups.com.
To post to this group, send email to ansible...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/75ffa20d-9b70-4d9f-8aaa-e94ad19d997e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.