aboutsummaryrefslogtreecommitdiffstats
path: root/roles/fedora/tasks
diff options
context:
space:
mode:
authorEmil Renner Berthing <esmil@labitat.dk>2018-09-22 15:29:45 +0200
committerEmil Renner Berthing <esmil@labitat.dk>2018-11-10 22:31:14 +0100
commit311893c3bc2bbd18669b5c80bf884e9d25889b74 (patch)
tree19b9b3664a9d29fcd30cf82ccf82037be5c9f726 /roles/fedora/tasks
parent9454fdbff511e965e4fd9eb187b7fe432dcd437e (diff)
downloadlabitat-ansible-311893c3bc2bbd18669b5c80bf884e9d25889b74.tar.gz
labitat-ansible-311893c3bc2bbd18669b5c80bf884e9d25889b74.tar.xz
labitat-ansible-311893c3bc2bbd18669b5c80bf884e9d25889b74.zip
space_server: update for Fedora 29
Diffstat (limited to 'roles/fedora/tasks')
-rw-r--r--roles/fedora/tasks/dnf.yml11
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