pushd %~dp0 start /wait jre-8u112-x64.exe INSTALLCFG=%~dp0jre.cfg
- name: template out JRE install config
win_template:
src: jre-install.cfg
dest: jre-install.cfg # better if you used the absolute path here and below
- name: install Java JRE
win_command: jre-8u112-x64.exe INSTALLCFG=jre-install.cfg
Thank you. The cfg file does specify all that and I did come to try something like you show below and got much larger error messages from ansible that I am trawling through…. Will also try the jdk to see if I get anything different.
Appreciate you looking at it.
Bill
--
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-proje...@googlegroups.com.
To post to this group, send email to ansible...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/c3ff1f89-df8c-4151-9f20-66276cee58b4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Hi, I was unable to get the JRE to install. I think it has something to do with it trying to register javaWS in the registry with browsers and as this is core there is of course no browser.
I did however get the JDK to install… I used the win_command – but I think I will go back and attempt with win_package again now as I want to try and keep this as clean as possible.
Thanks for your suggesting that the JDK worked for you!
Regards
Bill
From: ansible...@googlegroups.com <ansible...@googlegroups.com> On Behalf Of Jordan Borean
Sent: Wednesday, May 16, 2018 5:18 PM
To: Ansible Project <ansible...@googlegroups.com>
Subject: [ansible-project] Re: Installing Java JRE on windows 2016 core
Hi
--