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 autoclean: true
become: true become: true
when: distro == 'ubuntu' when: distro == 'ubuntu'
- block: - block:
- fail: - name: Update dnf cache
msg: "NotImplementedError: Implement system upgrade for fedora" 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' when: distro == 'fedora'
tags: [update_system] tags: [update_system]