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
|
- 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
|
||||||
|
|||||||
@ -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
|
||||||
|
|||||||
@ -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
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -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
|
||||||
|
|
||||||
|
|||||||
@ -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
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user