Using list instead of iterating over one to install packages
This commit is contained in:
parent
96390a2d46
commit
a9344cf181
@ -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
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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
|
||||
|
||||
|
||||
|
||||
@ -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
|
||||
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user