Merge pull request #402 from wazuh/feature-345-oracle2openjdk
Replacing Oracle Java with OpenJDK 1.8
This commit is contained in:
commit
903e5d53d1
@ -27,30 +27,14 @@
|
|||||||
- not wazuh_agent_sources_installation.enabled
|
- not wazuh_agent_sources_installation.enabled
|
||||||
- not wazuh_custom_packages_installation_agent_enabled
|
- not wazuh_custom_packages_installation_agent_enabled
|
||||||
|
|
||||||
- name: RedHat/CentOS/Fedora | download Oracle Java RPM
|
- name: RedHat/CentOS/Fedora | Install OpenJDK 1.8
|
||||||
get_url:
|
yum: name=java-1.8.0-openjdk state=present
|
||||||
url: https://download.oracle.com/otn-pub/java/jdk/8u202-b08/1961070e4c9b4e26a04e7f5a083f551e/jre-8u202-linux-x64.rpm
|
|
||||||
dest: /tmp/jre-8-linux-x64.rpm
|
|
||||||
headers: 'Cookie:oraclelicense=accept-securebackup-cookie'
|
|
||||||
register: oracle_java_task_rpm_download
|
|
||||||
until: oracle_java_task_rpm_download is succeeded
|
|
||||||
when:
|
when:
|
||||||
- wazuh_agent_config.cis_cat.disable == 'no'
|
- wazuh_agent_config.cis_cat.disable == 'no'
|
||||||
- wazuh_agent_config.cis_cat.install_java == 'yes'
|
- wazuh_agent_config.cis_cat.install_java == 'yes'
|
||||||
tags:
|
tags:
|
||||||
- init
|
- init
|
||||||
|
|
||||||
- name: RedHat/CentOS/Fedora | Install Oracle Java RPM
|
|
||||||
package: name=/tmp/jre-8-linux-x64.rpm state=present
|
|
||||||
register: wazuh_agent_java_package_install
|
|
||||||
until: wazuh_agent_java_package_install is succeeded
|
|
||||||
when:
|
|
||||||
- wazuh_agent_config.cis_cat.disable == 'no'
|
|
||||||
- wazuh_agent_config.cis_cat.install_java == 'yes'
|
|
||||||
- oracle_java_task_rpm_download is defined
|
|
||||||
tags:
|
|
||||||
- init
|
|
||||||
|
|
||||||
- name: Set Distribution CIS filename for RHEL5
|
- name: Set Distribution CIS filename for RHEL5
|
||||||
set_fact:
|
set_fact:
|
||||||
cis_distribution_filename: cis_rhel5_linux_rcl.txt
|
cis_distribution_filename: cis_rhel5_linux_rcl.txt
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user