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.

On Monday, June 6, 2016 at 12:03:15 PM UTC-7, Matt Davis wrote:
>
> 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
>
> On Monday, June 6, 2016 at 8:03:32 AM UTC-7, [email protected] 
> wrote:
>>
>> 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:
>>
>> ---    
>> - 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"
>>
>> Any ideas on what i am doing wrong as far as the syntax goes?
>>
>

-- 
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 [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/039f3cf0-6a5d-4bd8-96ac-074222995e02%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to