From cb3a75c9841ca0103d2c3cf46051a4e8af1217af Mon Sep 17 00:00:00 2001 From: Piotr Parczewski Date: Tue, 16 Nov 2021 20:28:17 +0100 Subject: [PATCH] CentOS: Optimise package installs --- tasks/centos.yml | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/tasks/centos.yml b/tasks/centos.yml index 9ee09f6..5987954 100644 --- a/tasks/centos.yml +++ b/tasks/centos.yml @@ -1,19 +1,15 @@ --- -- name: centos | installing lvm2 +- name: centos | installing lvm2 and sg3_utils package: - name: lvm2 + name: + - lvm2 + - sg3_utils state: present become: true - include_tasks: amazon.yml when: ansible_facts.system_vendor == 'Amazon EC2' -- name: centos | installing sg3_utils - package: - name: sg3_utils - state: present - become: true - - name: centos | debug lvg debug: var: lv