Hi all,

I start learning Ansible to run some deployment tasks on Windows platform. 
I encounter some hiccups with Windows modules as below:

- Install the executable package (.NET 4.5.2 framework)


   - I download the offline installer 
   (https://www.microsoft.com/en-us/download/details.aspx?id=42642) then run 
   the installation with a raw command from my playbook then it return an 
   error ("rc": 16389)

failed: [x.x.x.x] => {"rc": 16389}
stdout: An error was encountered.
 

Unspecified error  


   - I did some searching then this error might relate to the cache size 
   then I use the Web installation 
   (https://www.microsoft.com/en-us/download/details.aspx?id=42643) then 
   Ansible can run the package and download the package in middle then throw 
   an error ("rc" 5) (something relates to access denied). I try to use with 
   administrator account for the host inventory but no luck with that move
   
 - Install an MSI with properties


   - I try to use win_msi module and see the win_msi.ps1 script that 
   execute the installation by "msiexec.exe /i $params.path /qb /l $logfile 
   $extra_args;" so I try to input the properties within the path parameter, 
   for ex: C:\tool.msi property1=A perty2=b. However, seems my syntax is not 
   correct with the parse function then I got this error

This installation package could not be opened. Verify that the package 
exists and that you can access it, or contact the application vendor to 
verify that this is a valid Windows Installer package. 


   - Then I try to run the raw command in playbook: raw: msiexec.exe /i 
   C:\Tool.msi property1=a property2=b /qn . This way can install this msi, in 
   conclusion, we can't not the win_msi module at the moment for installation 
   with properties?


Thank you very much for your help
Quang 

-- 
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 ansible-project+unsubscr...@googlegroups.com.
To post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/ba9d19fb-27e4-47b0-809a-28a8cecb71b6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to