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 - name: Debian/Ubuntu | Install apt-transport-https and ca-certificates
apt: apt:
pkg: name: ['apt-transport-https', 'ca-certificates']
- apt-transport-https
- ca-certificates
state: present state: present
- when: elasticsearch_install_java - when: elasticsearch_install_java

View File

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

View File

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

View File

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

View File

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