Implement system update for fedora

This commit is contained in:
2020-03-03 23:33:14 +01:00
parent cd1d9d5d7f
commit 761a5b87e7

View File

@@ -40,9 +40,23 @@
autoclean: true
become: true
when: distro == 'ubuntu'
- block:
- fail:
msg: "NotImplementedError: Implement system upgrade for fedora"
- name: Update dnf cache
dnf:
update_cache: true
become: true
- name: Upgrade system
dnf:
name: '*'
state: latest
become: true
- name: Remove unused packages
dnf:
autoremove: true
become: true
when: distro == 'fedora'
tags: [update_system]