Better handling for package group installs

This commit is contained in:
Timo Makinen 2021-02-12 05:32:12 +00:00
parent d017446a0e
commit 5f679fd659

View file

@ -22,27 +22,15 @@
tasks: tasks:
- name: install extra package groups - name: install extra package groups
package: dnf:
name: "{{ package_group }}" name:
state: installed
with_items:
- "@development" - "@development"
- "@fonts" - "@fonts"
- "@gnome-desktop" - "@gnome-desktop"
- "@workstation-product" - "@workstation-product"
loop_control: state: installed
loop_var: package_group exclude:
- fprintd-pam
- 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
- name: install extra packages - name: install extra packages
package: package: