diff options
author | Emil Renner Berthing <esmil@labitat.dk> | 2018-09-22 15:29:45 +0200 |
---|---|---|
committer | Emil Renner Berthing <esmil@labitat.dk> | 2018-11-10 22:31:14 +0100 |
commit | 311893c3bc2bbd18669b5c80bf884e9d25889b74 (patch) | |
tree | 19b9b3664a9d29fcd30cf82ccf82037be5c9f726 /roles/fedora | |
parent | 9454fdbff511e965e4fd9eb187b7fe432dcd437e (diff) | |
download | labitat-ansible-311893c3bc2bbd18669b5c80bf884e9d25889b74.tar.gz labitat-ansible-311893c3bc2bbd18669b5c80bf884e9d25889b74.tar.xz labitat-ansible-311893c3bc2bbd18669b5c80bf884e9d25889b74.zip |
space_server: update for Fedora 29
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 |