install-packages: don't loop packages, install what's missing in one shot

This commit is contained in:
Josh Lay 2020-04-19 01:07:01 -05:00
parent 7530feaff1
commit 36cc90c9e7

View file

@ -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) }}"