From 5f679fd6599b144758af1643a87e41e1cddd943f Mon Sep 17 00:00:00 2001 From: Timo Makinen Date: Fri, 12 Feb 2021 05:32:12 +0000 Subject: [PATCH] Better handling for package group installs --- playbooks/shell.yml | 28 ++++++++-------------------- 1 file changed, 8 insertions(+), 20 deletions(-) diff --git a/playbooks/shell.yml b/playbooks/shell.yml index 5120675..c90de40 100644 --- a/playbooks/shell.yml +++ b/playbooks/shell.yml @@ -22,27 +22,15 @@ tasks: - name: install extra package groups - package: - name: "{{ package_group }}" + dnf: + name: + - "@development" + - "@fonts" + - "@gnome-desktop" + - "@workstation-product" state: installed - with_items: - - "@development" - - "@fonts" - - "@gnome-desktop" - - "@workstation-product" - loop_control: - loop_var: package_group - - - name: remove unwanted packages from groups - package: - name: "{{ package }}" - state: absent - with_items: - - bluez-obexd - - gnome-bluetooth - - pulseaudio-module-bluetooth - loop_control: - loop_var: package + exclude: + - fprintd-pam - name: install extra packages package: