I would recommend using win_package - that's what I use to maintain java
versions in our playbooks.
For info, recent java versions like to upgrade themselves. While this is
laudable it may cause unexpected behaviours as clusters start running
different java versions. So I would strongly recommend checking the
command line options for the java installer you are using. Below are the
command line arguments that we use on some systems:
arguments: INSTALL_SILENT=1 AUTO_UPDATE=0 WEB_JAVA=0 WEB_ANALYTICS=0 /s
/L C:\ansible\log\java-installation.log
# added install options based on options here:
http://docs.oracle.com/javase/8/docs/technotes/guides/install/config.html#table_config_file_options
Hope this helps,
Jon
On Wednesday, April 19, 2017 at 8:25:57 PM UTC+1, Tai Kedzierski wrote:
>
> Hello
>
> I am wanting to start maintaining a group of Windows hosts that badly need
> orchestration. One task is to update Java (major version) on all of them
>
> I have found the `win_msi` module , but scrolling down I find that it is
> listed as deprecated - not only that, but the further explanation seems to
> have been clipped (incomplete pargraph)
>
> http://docs.ansible.com/ansible/win_msi_module.html
>
> I note though that the main list does not list it as deprecated (not
> marked with "*D:*")
>
> http://docs.ansible.com/ansible/list_of_windows_modules.html
>
> So my questions are:
>
>
> - truly, is it deprecated and advised against?
> - and if so, what is the new, recommended way to update Java on a
> bunch of Windows hosts ?
>
>
> Thanking you
>
> Tai
>
--
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 [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/ansible-project/c68efdf9-1732-496b-9a7e-d4ac5528d732%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.