difference between win_dsc and win_package

Hello All,

what is the difference between win_dsc and win_package.

thanks,
Narmada

win_package is designed to install packages using exe and msi files where as win_dsc is for PowerShell Desired State Configurations

Thanks Lucas,
but when i am trying to install dotnetcore sdk on windows hosts i am getting this error

fatal: [servername]: FAILED! => {“changed”: false, “msg”: “failed to run install process (q4leaxlf.gus /q /norestart): Exception calling "RunCommand" with "5" argument(s): "Failed to create new process (%1 is not a valid Win32 application, Win32ErrorCode 193)"”, “reboot_required”: false, “restart_required”: false}

my playbook:

Hi

You are pointing to a URL that is then redirected to another URL after x amount of time to https://download.visualstudio.microsoft.com/download/pr/cd42f66a-2b6a-4a7a-9e69-0bb4eb5a83a1/0ce246546a0886349d9acf872f4e15a4/dotnet-sdk-2.1.500-win-x64.exe. I’m not sure whether this is always the same URL or whether it’s a temporary one generated by Microsoft but the file that was downloaded by Ansible was not a valid executable.

Thanks

Jordan

Thanks Jordan it worked when i used the redirection url (which you provided me in above email) in my playbook and it got installed on target servers. but where did you find it is getting redirected to another url.

right click on Try again and copy link to clipboard

I am unable to copy to clipboard…

this is what i see.

that’s just a screen cap of the website

https://dotnet.microsoft.com/download/thank-you/dotnet-sdk-2.1.500-windows-x64-installer

click Try again on this page

(attachments)

I just started downloading the actual file and got the link from there. Chrome/Firefox have the ability to copy the link used in a download, I’m sure other browsers would have the same ability.