Install software to Windows machine...

Thanks for all your help earlier, it was greatly appreciated.

Now I am attempting to automate installation of some software across all my Windows VM’s . I have found some documentation on the web but am still having trouble. At this point it is getting hung up on the last line.
The playbook looks like this…

I think I remember reading that in this case you should split the
task: download the file and then install it.

Maybe split the task even further, as connecting to a target via
ansible and then connection to yet another server to get the file
might pose a problem.

So:
Get the file on the controller
Push the file to the target
Install the file.

Just an idea,
Johannes

is “S:” a local or mapped drive?

How should I know, it's your machine... :wink:

Just try and log into the machine, copy the file from S:\... to
somewhere on C: (where your user has the rights) and then try to run
your playbook with this path...

Johannes

Try the below as long as you have your WinRm configured correctly within it should use those to connect to your Windows hosts. The below register the path of S:\ClaimWin to that variable you can use that later for any purpose you need. It then copies the file locally onto c/temp/ then installs it once the installs complete it removes it from c/temp.

The reason I’m asking if S is local or shared is that if its a mapped network drive and you’re using Kerberos authentication it basically won’t work out of the box, because of limitations around double-hop remoting. You can either use trust for delegation, or switch to another (basic or NTLM auth scheme).