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-project@googlegroups.com <ansible-project@googlegroups.com> On Behalf Of Jordan Borean Sent: Wednesday, May 16, 2018 5:18 PM To: Ansible Project <ansible-project@googlegroups.com> Subject: [ansible-project] Re: Installing Java JRE on windows 2016 core Hi Without actually seeing the server itself I can't give you much but a quick Google search shows there is some compatibilities with the JRE and JDK resulting in the rc of 1603 https://www.ghacks.net/2015/06/26/fixing-java-update-did-not-complete-error-code-1603/. I've only installed the JDK before but the JRE should be similar, you don't need to use a batch file, something like this should work - 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 I have no idea with the install.cfg format should be but it needs to at least specify that the installer is run in silent or quiet mode with no prompts or else it will hang forever. Whether that is implicit or needs to be explicit I'm not sure. Thanks Jordna -- 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 <mailto:ansible-project+unsubscr...@googlegroups.com> . To post to this group, send email to ansible-project@googlegroups.com <mailto:ansible-project@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 <https://groups.google.com/d/msgid/ansible-project/c3ff1f89-df8c-4151-9f20-66276cee58b4%40googlegroups.com?utm_medium=email&utm_source=footer> . For more options, visit https://groups.google.com/d/optout. -- 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/36ce01d3ee0f%24efdcc720%24cf965560%24%40gmail.com. For more options, visit https://groups.google.com/d/optout.