Update cache when a new repository has been added

This commit is contained in:
Emmanouil Kampitakis 2018-07-18 11:02:56 +02:00
parent 971ddc6afd
commit f1d596852a
4 changed files with 9 additions and 1 deletions

View File

@ -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:

View File

@ -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:

View File

@ -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

View File

@ -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'