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