Merge pull request #110 from wazuh/3.7-concurrent-packages

Installing concurrent apt packages
This commit is contained in:
Manuel J. Bernal 2019-04-01 17:30:30 +02:00 committed by GitHub
commit 07dacae92d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 11 additions and 38 deletions

View File

@ -1,12 +1,8 @@
--- ---
- name: Debian/Ubuntu | Install apt-transport-https and ca-certificates - name: Debian/Ubuntu | Install apt-transport-https and ca-certificates
apt: apt:
name: "{{ item }}" name: ['apt-transport-https', 'ca-certificates']
state: present state: present
cache_valid_time: 3600
with_items:
- apt-transport-https
- ca-certificates
- when: elasticsearch_install_java - when: elasticsearch_install_java
block: block:

View File

@ -1,12 +1,8 @@
--- ---
- name: Debian/Ubuntu | Install apt-transport-https and ca-certificates - name: Debian/Ubuntu | Install apt-transport-https and ca-certificates
apt: apt:
name: "{{ item }}" name: ['apt-transport-https', 'ca-certificates']
state: present state: present
cache_valid_time: 3600
with_items:
- apt-transport-https
- ca-certificates
- name: Debian/Ubuntu | Add Elasticsearch GPG key - name: Debian/Ubuntu | Add Elasticsearch GPG key
apt_key: apt_key:

View File

@ -1,12 +1,8 @@
--- ---
- name: Debian/Ubuntu | Install apt-transport-https and ca-certificates - name: Debian/Ubuntu | Install apt-transport-https and ca-certificates
apt: apt:
name: "{{ item }}" name: ['apt-transport-https', 'ca-certificates']
state: present state: present
cache_valid_time: 3600
with_items:
- apt-transport-https
- ca-certificates
- when: logstash_install_java - when: logstash_install_java
block: block:

View File

@ -1,12 +1,9 @@
--- ---
- name: Debian/Ubuntu | Install apt-transport-https and ca-certificates - name: Debian/Ubuntu | Install apt-transport-https and ca-certificates
apt: apt:
name: "{{ item }}" name: ['apt-transport-https', 'ca-certificates']
state: present state: present
cache_valid_time: 3600
with_items:
- apt-transport-https
- ca-certificates
- name: Debian/Ubuntu | Add Elasticsearch apt key. - name: Debian/Ubuntu | Add Elasticsearch apt key.
apt_key: apt_key:

View File

@ -1,12 +1,8 @@
--- ---
- name: Debian/Ubuntu | Install apt-transport-https and ca-certificates - name: Debian/Ubuntu | Install apt-transport-https and ca-certificates
apt: apt:
name: "{{ item }}" name: ['apt-transport-https', 'ca-certificates']
state: present state: present
cache_valid_time: 3600
with_items:
- apt-transport-https
- ca-certificates
- name: Debian/Ubuntu | Installing repository key - name: Debian/Ubuntu | Installing repository key
apt_key: url=https://packages.wazuh.com/key/GPG-KEY-WAZUH apt_key: url=https://packages.wazuh.com/key/GPG-KEY-WAZUH
@ -49,13 +45,9 @@
- name: Debian/Ubuntu | Install OpenScap - name: Debian/Ubuntu | Install OpenScap
apt: apt:
name: "{{ item }}" name: ['libopenscap8', 'xsltproc']
state: present state: present
cache_valid_time: 3600
when: wazuh_agent_config.openscap.disable == 'no' when: wazuh_agent_config.openscap.disable == 'no'
with_items:
- libopenscap8
- xsltproc
tags: tags:
- init - init

View File

@ -1,12 +1,8 @@
--- ---
- name: Debian/Ubuntu | Install apt-transport-https and ca-certificates - name: Debian/Ubuntu | Install apt-transport-https and ca-certificates
apt: apt:
name: "{{ item }}" name: ['apt-transport-https', 'ca-certificates']
state: present state: present
cache_valid_time: 3600
with_items:
- apt-transport-https
- ca-certificates
- name: Debian/Ubuntu | Installing Wazuh repository key - name: Debian/Ubuntu | Installing Wazuh repository key
apt_key: url=https://packages.wazuh.com/key/GPG-KEY-WAZUH apt_key: url=https://packages.wazuh.com/key/GPG-KEY-WAZUH