diff options
Diffstat (limited to 'roles/fedora')
-rw-r--r-- | roles/fedora/tasks/dnf.yml | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/roles/fedora/tasks/dnf.yml b/roles/fedora/tasks/dnf.yml index cc28e97..6b3ad74 100644 --- a/roles/fedora/tasks/dnf.yml +++ b/roles/fedora/tasks/dnf.yml @@ -12,26 +12,23 @@ - name: Remove packages dnf: - name: '{{ item }}' + name: "{{ dnf_packages|dictsort(true)|selectattr(1,'equalto','absent')|map(attribute=0)|list }}" state: absent - with_items: "{{ dnf_packages|dictsort(true)|selectattr(1,'equalto','absent')|map(attribute=0)|list }}" - tags: - packages -- name: Update all packages +- name: Upgrade all packages dnf: name: '*' state: latest tags: - - update + - upgrade - packages - name: Install packages dnf: - name: '{{ item }}' + name: "{{ dnf_packages|dictsort(true)|selectattr(1,'equalto','present')|map(attribute=0)|list }}" state: present - with_items: "{{ dnf_packages|dictsort(true)|selectattr(1,'equalto','present')|map(attribute=0)|list }}" tags: - packages |