From 36cc90c9e78d41a9284f5fc56ad35f78f499d496 Mon Sep 17 00:00:00 2001 From: Josh Lay Date: Sun, 19 Apr 2020 01:07:01 -0500 Subject: [PATCH] install-packages: don't loop packages, install what's missing in one shot --- roles/install-packages/tasks/el.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/roles/install-packages/tasks/el.yml b/roles/install-packages/tasks/el.yml index 838ed7f..82128b4 100644 --- a/roles/install-packages/tasks/el.yml +++ b/roles/install-packages/tasks/el.yml @@ -2,6 +2,5 @@ - name: install packages (EPEL/Fedora) package: - name: "{{ item }}" + name: "{{ (COMMON_PKGS + EL_PKGS) | difference(ansible_facts.packages) }}" state: present - with_items: "{{ (COMMON_PKGS + EL_PKGS) | difference(ansible_facts.packages) }}"