# Playbook command on windows machine

**URL:** <https://forum.ansible.com/t/playbook-command-on-windows-machine/21676>\
**Category:** Ansible Project\
**Tags:** windows\
**Created:** [June 6, 2016, 3:03pm UTC](https://forum.ansible.com/t/playbook-command-on-windows-machine/21676 "2016-06-06T15:03:32Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![aaron.trujillo](https://avatars.discourse-cdn.com/v4/letter/a/ea5d25/32.png) [@aaron.trujillo](https://forum.ansible.com/u/aaron.trujillo)\
**Post date:** [June 6, 2016, 3:03pm UTC](https://forum.ansible.com/t/playbook-command-on-windows-machine/21676/1 "2016-06-06T15:03:32Z")

</div>

Good morning,  
I am running Ansible 2.0 on my Debian host machine. I have successfully connected to my windows server 2008 m via ping and other types of playbooks.  
I am currently attempting to run a playbook that grabs a program off of a shared network folder and installs it on the desired windows machine, but i get:

fatal: [GP1-LAB-OPSTST2]: FAILED! =\> {“changed”: false, “failed”: true, “msg”: “The given Path (S:\ClamWin\clamwin-0.99.1-setup.exe) could not be found”, “name”: “S:\ClamWin\clamwin-0.99.1-setup.exe”}

That is clearly the path.

My playbook looks like this:

---

<div class="post-metadata">

**Author:** ![Matt\_Davis](https://avatars.discourse-cdn.com/v4/letter/m/ce7236/32.png) [@Matt\_Davis](https://forum.ansible.com/u/Matt_Davis)\
**Post date:** [June 6, 2016, 7:03pm UTC](https://forum.ansible.com/t/playbook-command-on-windows-machine/21676/2 "2016-06-06T19:03:15Z")

</div>

Just get rid of the quotes and double-backslashes altogether and use standard YAML syntax (instead of Ansible key=value) to get some of the extra parsers out of the way:

- name: Install Clamwin  
hosts: WindowsOS  
tasks:
- name: Install ClamWin  
win\_package:  
path: S:\ClamWin\clamwin-0.99.1-setup.exe  
product\_id: HKEY\_LOCAL\_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\ClamWin Free Antivirus\_is1  
arguments: /install /passive /norestart

---

<div class="post-metadata">

**Author:** ![Matt\_Davis](https://avatars.discourse-cdn.com/v4/letter/m/ce7236/32.png) [@Matt\_Davis](https://forum.ansible.com/u/Matt_Davis)\
**Post date:** [June 6, 2016, 7:04pm UTC](https://forum.ansible.com/t/playbook-command-on-windows-machine/21676/3 "2016-06-06T19:04:31Z")

</div>

Drive mapping will also most likely not work- for now, you’ll need to use kerberos delegation or use the user/pass args to win\_package and direct UNC path.
