Dear All,
Below task gets completed while running it manually from window dos however nothing happens while we execute it using ansible playbook and there is no error as well.
How to debug such issue and get it working ?
Play-book1:
Dear All,
Below task gets completed while running it manually from window dos however nothing happens while we execute it using ansible playbook and there is no error as well.
How to debug such issue and get it working ?
Play-book1:
Is there supposed to be a space after “-f1” or “-f2”? It does look like there should be one, but that’s just a wild guess.
Regards, K.
yes space is there but in output it is not visible . Also It does not throw any error .
Dunno about it now throwing an error, but that space is not in the input either, i.e., it is not in the command as you provided it here. And why would it not be in the output? Ansible doesn’t randomly remove bits of output. Might be worth double-checking…
Regards, K.
Have a read of this…
https://docs.ansible.com/ansible/latest/user_guide/windows_faq.html#why-can-i-run-a-command-locally-that-does-not-work-under-ansible
Is it possible the installer is expecting a GUI? Sometimes installers have a ‘silent’ or ‘unattended’ mode that means they can be made to run without GUI so worth seeing if that is an option.
Running via ‘become’ instead of via psexec might be worth trying too.
I hope this helps,
Jon
yes it is ignoring the command passed after -s . Is there any option to debug and pin point the actual issue as it is working fine without ansible .
I know NOTHING about Windows, but maybe if you read the doco for the setup.exe program it might have some clues? Also, what output do you get if you replace all the arguments to setup.exe with one “/?”
Regards, K.
Thanks a lot Jon !! It worked for me …