# Manual VS Ansible playbook in window server

**URL:** <https://forum.ansible.com/t/manual-vs-ansible-playbook-in-window-server/31442>\
**Category:** Ansible Project\
**Created:** [October 9, 2019, 11:49am UTC](https://forum.ansible.com/t/manual-vs-ansible-playbook-in-window-server/31442 "2019-10-09T11:49:40Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Manish\_Kumar](https://avatars.discourse-cdn.com/v4/letter/m/d07c76/32.png) [@Manish\_Kumar](https://forum.ansible.com/u/Manish_Kumar)\
**Post date:** [October 9, 2019, 11:49am UTC](https://forum.ansible.com/t/manual-vs-ansible-playbook-in-window-server/31442/1 "2019-10-09T11:49:40Z")

</div>

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:

---

<div class="post-metadata">

**Author:** ![Karl\_Auer](https://avatars.discourse-cdn.com/v4/letter/k/cc9497/32.png) [@Karl\_Auer](https://forum.ansible.com/u/Karl_Auer)\
**Post date:** [October 9, 2019, 12:48pm UTC](https://forum.ansible.com/t/manual-vs-ansible-playbook-in-window-server/31442/2 "2019-10-09T12:48:53Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![Manish\_Kumar](https://avatars.discourse-cdn.com/v4/letter/m/d07c76/32.png) [@Manish\_Kumar](https://forum.ansible.com/u/Manish_Kumar)\
**Post date:** [October 9, 2019, 12:50pm UTC](https://forum.ansible.com/t/manual-vs-ansible-playbook-in-window-server/31442/3 "2019-10-09T12:50:40Z")

</div>

yes space is there but in output it is not visible . Also It does not throw any error .

---

<div class="post-metadata">

**Author:** ![Karl\_Auer](https://avatars.discourse-cdn.com/v4/letter/k/cc9497/32.png) [@Karl\_Auer](https://forum.ansible.com/u/Karl_Auer)\
**Post date:** [October 9, 2019, 1:01pm UTC](https://forum.ansible.com/t/manual-vs-ansible-playbook-in-window-server/31442/4 "2019-10-09T13:01:57Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![j.r.hawkesworth](https://avatars.discourse-cdn.com/v4/letter/j/a3d4f5/32.png) [@j.r.hawkesworth](https://forum.ansible.com/u/j.r.hawkesworth)\
**Post date:** [October 10, 2019, 5:54am UTC](https://forum.ansible.com/t/manual-vs-ansible-playbook-in-window-server/31442/5 "2019-10-10T05:54:19Z")

</div>

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](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

---

<div class="post-metadata">

**Author:** ![Manish\_Kumar](https://avatars.discourse-cdn.com/v4/letter/m/d07c76/32.png) [@Manish\_Kumar](https://forum.ansible.com/u/Manish_Kumar)\
**Post date:** [October 10, 2019, 8:07am UTC](https://forum.ansible.com/t/manual-vs-ansible-playbook-in-window-server/31442/6 "2019-10-10T08:07:51Z")

</div>

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 .

---

<div class="post-metadata">

**Author:** ![Karl\_Auer](https://avatars.discourse-cdn.com/v4/letter/k/cc9497/32.png) [@Karl\_Auer](https://forum.ansible.com/u/Karl_Auer)\
**Post date:** [October 10, 2019, 8:13am UTC](https://forum.ansible.com/t/manual-vs-ansible-playbook-in-window-server/31442/7 "2019-10-10T08:13:59Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![Manish\_Kumar](https://avatars.discourse-cdn.com/v4/letter/m/d07c76/32.png) [@Manish\_Kumar](https://forum.ansible.com/u/Manish_Kumar)\
**Post date:** [October 10, 2019, 9:45am UTC](https://forum.ansible.com/t/manual-vs-ansible-playbook-in-window-server/31442/8 "2019-10-10T09:45:44Z")

</div>

Thanks a lot Jon !! It worked for me …
