From 94087f90d0192be55a2e4d046acae1666142f9c6 Mon Sep 17 00:00:00 2001 From: Josh Lay Date: Sat, 18 Apr 2020 23:37:22 -0500 Subject: [PATCH] install-packages: print changed packages, rename EL package list --- roles/install-packages/defaults/main.yml | 5 ++--- roles/install-packages/tasks/el.yml | 3 ++- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/roles/install-packages/defaults/main.yml b/roles/install-packages/defaults/main.yml index 572b867..7e79d54 100644 --- a/roles/install-packages/defaults/main.yml +++ b/roles/install-packages/defaults/main.yml @@ -11,15 +11,14 @@ COMMON_PKGS: - fio - rsync - lsof - -EPEL_PKGS: +EL_PKGS: - iperf3 - nmap - lvm2 - bind-utils - psmisc # may work on deb/ubuntu also? - provides killall - wget - + - cockpit DEB_PKGS: - "{{ common_pkgs }}" - dnsutils diff --git a/roles/install-packages/tasks/el.yml b/roles/install-packages/tasks/el.yml index 8eed18a..838ed7f 100644 --- a/roles/install-packages/tasks/el.yml +++ b/roles/install-packages/tasks/el.yml @@ -2,5 +2,6 @@ - name: install packages (EPEL/Fedora) package: - name: "{{ (COMMON_PKGS + EPEL_PKGS) | difference(ansible_facts.packages) }}" + name: "{{ item }}" state: present + with_items: "{{ (COMMON_PKGS + EL_PKGS) | difference(ansible_facts.packages) }}"