Adding openjdk repository for Ubuntu 14.04.
This commit is contained in:
parent
2716f2c7bf
commit
bcd535351b
@ -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
|
||||||
|
|
||||||
|
|||||||
@ -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
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user