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