ansible play book
root@dev-mmadmin-lx01 playbooks]# cat win_firefox_install.yml
- name: install
hosts: wintestserverchandra
tasks:
- name: InstallFF
win_msi: path=d:\install\Firefox.exe
ansible play book
root@dev-mmadmin-lx01 playbooks]# cat win_firefox_install.yml
tasks:
I would try win_package as the alternative module for installing the exe.
The chocolatey module (win_chocolatey) can also install firefox.
Hello Mike,
I am having trouble installing a software(thru ansible) using the executable provided by the vendor. I approached the vendor and asked if they could provide us with a msi to make things easier but unfortunately
Anyway, I generated a response file setup.iss using -r switch. When I run Setup.exe -s setup.iss in powershell locally on the vm, it installs the software in ~10seconds.
I include the path to the executable and same command in a powershell script and run it from ansible, it doesn’t install it. Although the task doesn’t error out. It says changed. I believe it starts installing and then exits the task abruptly. Did you / anyone out there encounter a problem like this? Please let me know if you have a solution for this.
My target machine is a 2008 R2, updated .Net Framework and WMF and thus powershell… My ansible version is 2.3.0.0
Thanks,
Hitesh
I suggest you try to find any command line options that log the installation to a file. That way maybe you can find out what point the installer has stopped working.
Some installers expect to have the windows graphical user interface available, so it is worth checking to see if there is a /quiet or /qn option for the installer.
Does the installer need access to remote files? If so, sometimes this will stop the installer from working via ansible but you can usually work around this if you have to domain login and configure ansible to enable Kerberos authorization delegation.
Hope this helps.
Jon