Using list instead of iterating over one to install packages

This commit is contained in:
l 2019-04-01 12:23:48 +02:00
parent 96390a2d46
commit a9344cf181
5 changed files with 6 additions and 18 deletions

View File

@ -1,9 +1,7 @@
---
- name: Debian/Ubuntu | Install apt-transport-https and ca-certificates
apt:
pkg:
- apt-transport-https
- ca-certificates
name: ['apt-transport-https', 'ca-certificates']
state: present
- when: elasticsearch_install_java

View File

@ -1,9 +1,7 @@
---
- name: Debian/Ubuntu | Install apt-transport-https and ca-certificates
apt:
pkg:
- apt-transport-https
- ca-certificates
name: ['apt-transport-https', 'ca-certificates']
state: present
- when: logstash_install_java

View File

@ -1,9 +1,7 @@
---
- name: Debian/Ubuntu | Install apt-transport-https and ca-certificates
apt:
pkg:
- apt-transport-https
- ca-certificates
name: ['apt-transport-https', 'ca-certificates']
state: present

View File

@ -1,9 +1,7 @@
---
- name: Debian/Ubuntu | Install apt-transport-https and ca-certificates
apt:
pkg:
- apt-transport-https
- ca-certificates
name: ['apt-transport-https', 'ca-certificates']
state: present
- name: Debian/Ubuntu | Installing repository key
@ -47,11 +45,9 @@
- name: Debian/Ubuntu | Install OpenScap
apt:
name: ['libopenscap8', 'xsltproc']
state: present
when: wazuh_agent_config.openscap.disable == 'no'
pkg:
- libopenscap8
- xsltproc
tags:
- init

View File

@ -1,9 +1,7 @@
---
- name: Debian/Ubuntu | Install apt-transport-https and ca-certificates
apt:
pkg:
- apt-transport-https
- ca-certificates
name: ['apt-transport-https', 'ca-certificates']
state: present
- name: Debian/Ubuntu | Installing Wazuh repository key