Adding openjdk repository for Ubuntu 14.04.

This commit is contained in:
jm404 2019-04-30 16:59:29 +02:00
parent 2716f2c7bf
commit bcd535351b
2 changed files with 23 additions and 7 deletions

View File

@ -37,12 +37,20 @@
cis_distribution_filename: cis_debian_linux_rcl.txt cis_distribution_filename: cis_debian_linux_rcl.txt
when: ansible_os_family == "Debian" when: ansible_os_family == "Debian"
- name: Debian/Ubuntu | Install OpenJDK-8 repo
apt_repository:
repo: 'ppa:openjdk-r/ppa'
state: present
update_cache: true
when:
- (ansible_distribution == "Ubuntu" and ansible_distribution_major_version | int == 14)
- 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'
block: block:
- name: Debian/Ubuntu | Install OpenJDK 1.8 - name: Debian/Ubuntu | Install OpenJDK 1.8
apt: name=openjdk-8-jre state=present cache_valid_time=3600 apt: name=openjdk-8-jre state=present cache_valid_time=3600
tags: tags:
- init - init

View File

@ -64,12 +64,20 @@
set_fact: set_fact:
cis_distribution_filename: cis_debian_linux_rcl.txt cis_distribution_filename: cis_debian_linux_rcl.txt
- name: Debian/Ubuntu | Install OpenJDK-8 repo
apt_repository:
repo: 'ppa:openjdk-r/ppa'
state: present
update_cache: true
when:
- (ansible_distribution == "Ubuntu" and ansible_distribution_major_version | int == 14)
- when: - when:
- wazuh_manager_config.cis_cat.disable == 'no' - wazuh_manager_config.cis_cat.disable == 'no'
- wazuh_manager_config.cis_cat.install_java == 'yes' - wazuh_manager_config.cis_cat.install_java == 'yes'
block: block:
- name: Debian/Ubuntu | Install OpenJDK 1.8 - name: Debian/Ubuntu | Install OpenJDK 1.8
apt: name=openjdk-8-jre state=present cache_valid_time=3600 apt: name=openjdk-8-jre state=present cache_valid_time=3600
tags: tags:
- init - init