Better handling for package group installs
This commit is contained in:
parent
d017446a0e
commit
5f679fd659
1 changed files with 8 additions and 20 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue