Set cache valid time for oracle java installation
This commit is contained in:
parent
2071969f9d
commit
971ddc6afd
@ -1,6 +1,9 @@
|
||||
---
|
||||
- name: Debian/Ubuntu | Install apt-transport-https and ca-certificates
|
||||
apt: name="{{ item }}" state=present update_cache=yes
|
||||
apt:
|
||||
name: "{{ item }}"
|
||||
state: present
|
||||
cache_valid_time: 3600
|
||||
with_items:
|
||||
- apt-transport-https
|
||||
- ca-certificates
|
||||
@ -20,7 +23,10 @@
|
||||
vtype: boolean
|
||||
|
||||
- name: Debian/Ubuntu | Oracle Java 8 installer
|
||||
apt: name=oracle-java8-installer state=present update_cache=yes
|
||||
apt:
|
||||
name: oracle-java8-installer
|
||||
state: present
|
||||
cache_valid_time: 3600
|
||||
tags: install
|
||||
|
||||
- name: Debian/Ubuntu | Add Elasticsearch GPG key.
|
||||
@ -35,5 +41,8 @@
|
||||
filename: 'elastic_repo'
|
||||
|
||||
- name: Debian/Ubuntu | Install Elasticsarch
|
||||
apt: name=elasticsearch={{ elastic_stack_version }} state=present update_cache=yes
|
||||
apt:
|
||||
name: "elasticsearch={{ elastic_stack_version }}"
|
||||
state: present
|
||||
cache_valid_time: 3600
|
||||
tags: install
|
||||
|
||||
@ -1,6 +1,9 @@
|
||||
---
|
||||
- name: Debian/Ubuntu | Install apt-transport-https and ca-certificates
|
||||
apt: name="{{ item }}" state=present update_cache=yes
|
||||
apt:
|
||||
name: "{{ item }}"
|
||||
state: present
|
||||
cache_valid_time: 3600
|
||||
with_items:
|
||||
- apt-transport-https
|
||||
- ca-certificates
|
||||
|
||||
@ -3,7 +3,8 @@
|
||||
|
||||
pre_tasks:
|
||||
- name: Update apt cache.
|
||||
apt: update_cache=yes cache_valid_time=600
|
||||
apt:
|
||||
cache_valid_time: 600
|
||||
when: ansible_os_family == 'Debian'
|
||||
|
||||
- name: Install test dependencies (RedHat).
|
||||
|
||||
@ -1,6 +1,9 @@
|
||||
---
|
||||
- name: Debian/Ubuntu | Install apt-transport-https and ca-certificates
|
||||
apt: name="{{ item }}" state=present update_cache=yes
|
||||
apt:
|
||||
name: "{{ item }}"
|
||||
state: present
|
||||
cache_valid_time: 3600
|
||||
with_items:
|
||||
- apt-transport-https
|
||||
- ca-certificates
|
||||
@ -17,5 +20,8 @@
|
||||
filename: 'elastic_repo'
|
||||
|
||||
- name: Debian/Ubuntu | Install Kibana
|
||||
apt: name=kibana={{ elastic_stack_version }} state=present update_cache=yes
|
||||
tags: install
|
||||
apt:
|
||||
name: "kibana={{ elastic_stack_version }}"
|
||||
state: present
|
||||
cache_valid_time: 3600
|
||||
tags: install
|
||||
|
||||
@ -1,6 +1,9 @@
|
||||
---
|
||||
- name: Debian/Ubuntu | Install apt-transport-https and ca-certificates
|
||||
apt: name="{{ item }}" state=present update_cache=yes
|
||||
apt:
|
||||
name: "{{ item }}"
|
||||
state: present
|
||||
cache_valid_time: 3600
|
||||
with_items:
|
||||
- apt-transport-https
|
||||
- ca-certificates
|
||||
@ -22,8 +25,8 @@
|
||||
- name: Debian/Ubuntu | Oracle Java 8 installer
|
||||
apt:
|
||||
name: oracle-java8-installer
|
||||
update_cache: yes
|
||||
state: present
|
||||
cache_valid_time: 3600
|
||||
tags: install
|
||||
|
||||
- name: Debian/Ubuntu | Add Elasticsearch GPG key
|
||||
@ -38,7 +41,10 @@
|
||||
filename: 'elastic_repo'
|
||||
|
||||
- name: Debian/Ubuntu | Install Logstash
|
||||
apt: name=logstash=1:{{ elastic_stack_version }}-1 state=present update_cache=yes
|
||||
apt:
|
||||
name: logstash=1:{{ elastic_stack_version }}-1
|
||||
state: present
|
||||
update_cache: yes
|
||||
tags: install
|
||||
|
||||
- name: Debian/Ubuntu | Checking if wazuh-manager is installed
|
||||
|
||||
@ -1,6 +1,9 @@
|
||||
---
|
||||
- name: Debian/Ubuntu | Install apt-transport-https and ca-certificates
|
||||
apt: name="{{ item }}" state=present update_cache=yes
|
||||
apt:
|
||||
name: "{{ item }}"
|
||||
state: present
|
||||
cache_valid_time: 3600
|
||||
with_items:
|
||||
- apt-transport-https
|
||||
- ca-certificates
|
||||
@ -42,7 +45,10 @@
|
||||
- init
|
||||
|
||||
- name: Debian/Ubuntu | Oracle Java 8 installer
|
||||
apt: name=oracle-java8-installer state=present update_cache=yes
|
||||
apt:
|
||||
name: oracle-java8-installer
|
||||
state: present
|
||||
cache_valid_time: 3600
|
||||
when:
|
||||
- wazuh_agent_config.cis_cat.disable == 'no'
|
||||
- wazuh_agent_config.cis_cat.install_java == 'yes'
|
||||
|
||||
@ -1,6 +1,9 @@
|
||||
---
|
||||
- name: Debian/Ubuntu | Install apt-transport-https and ca-certificates
|
||||
apt: name="{{ item }}" state=present update_cache=yes
|
||||
apt:
|
||||
name: "{{ item }}"
|
||||
state: present
|
||||
cache_valid_time: 3600
|
||||
with_items:
|
||||
- apt-transport-https
|
||||
- ca-certificates
|
||||
@ -50,7 +53,10 @@
|
||||
- init
|
||||
|
||||
- name: Debian/Ubuntu | Oracle Java 8 installer
|
||||
apt: name=oracle-java8-installer state=present update_cache=yes
|
||||
apt:
|
||||
name: oracle-java8-installer
|
||||
state: present
|
||||
cache_valid_time: 3600
|
||||
when:
|
||||
- wazuh_manager_config.cis_cat.disable == 'no'
|
||||
- wazuh_manager_config.cis_cat.install_java == 'yes'
|
||||
@ -58,7 +64,10 @@
|
||||
- init
|
||||
|
||||
- name: Debian/Ubuntu | Install OpenScap
|
||||
package: name={{ item }} state=present update_cache=yes
|
||||
package:
|
||||
name: {{ item }}
|
||||
state: present
|
||||
cache_valid_time: 3600
|
||||
when: wazuh_manager_config.openscap.disable == 'no'
|
||||
with_items:
|
||||
- libopenscap8
|
||||
|
||||
Loading…
Reference in New Issue
Block a user