Update cache when a new repository has been added
This commit is contained in:
parent
971ddc6afd
commit
f1d596852a
@ -12,6 +12,7 @@
|
||||
apt_repository:
|
||||
repo: 'ppa:webupd8team/java'
|
||||
codename: 'xenial'
|
||||
update_cache: yes
|
||||
|
||||
- when: elasticsearch_install_java
|
||||
block:
|
||||
@ -39,6 +40,7 @@
|
||||
repo: 'deb https://artifacts.elastic.co/packages/6.x/apt stable main'
|
||||
state: present
|
||||
filename: 'elastic_repo'
|
||||
update_cache: yes
|
||||
|
||||
- name: Debian/Ubuntu | Install Elasticsarch
|
||||
apt:
|
||||
|
||||
@ -18,6 +18,7 @@
|
||||
repo: 'deb https://artifacts.elastic.co/packages/6.x/apt stable main'
|
||||
state: present
|
||||
filename: 'elastic_repo'
|
||||
updated_cache: yes
|
||||
|
||||
- name: Debian/Ubuntu | Install Kibana
|
||||
apt:
|
||||
|
||||
@ -26,6 +26,7 @@
|
||||
apt_repository:
|
||||
repo: 'ppa:webupd8team/java'
|
||||
codename: 'xenial'
|
||||
update_cache: yes
|
||||
when:
|
||||
- wazuh_agent_config.cis_cat.disable == 'no'
|
||||
- wazuh_agent_config.cis_cat.install_java == 'yes'
|
||||
@ -56,7 +57,10 @@
|
||||
- init
|
||||
|
||||
- name: Debian/Ubuntu | Install OpenScap
|
||||
package: name={{ item }} state=present update_cache=yes
|
||||
apt:
|
||||
name: {{ item }}
|
||||
state: present
|
||||
cache_valid_time: 3600
|
||||
when: wazuh_agent_config.openscap.disable == 'no'
|
||||
with_items:
|
||||
- libopenscap8
|
||||
|
||||
@ -34,6 +34,7 @@
|
||||
apt_repository:
|
||||
repo: 'ppa:webupd8team/java'
|
||||
codename: 'xenial'
|
||||
update_cache: yes
|
||||
when:
|
||||
- wazuh_manager_config.cis_cat.disable == 'no'
|
||||
- wazuh_manager_config.cis_cat.install_java == 'yes'
|
||||
|
||||
Loading…
Reference in New Issue
Block a user