dotfiles/playbooks/roles/fedora/upgrade/tasks/main.yml
Matej Focko e7f54b1b53
Add playbook for Fedora upgrade to next release
Signed-off-by: Matej Focko <me@mfocko.xyz>
2020-10-31 12:22:58 +01:00

24 lines
483 B
YAML

---
- name: Switch to remote repositories
include_role:
name: fedora/repositories
vars:
source: "remote"
- name: Update all packages
dnf:
name: '*'
state: latest
- name: Install system-upgrade plugin
dnf:
name: dnf-plugin-system-upgrade
- name: Switch to local repositories
include_role:
name: fedora/repositories
vars:
source: "local"
- name: Start the release update
shell: dnf system-upgrade download -y --releasever={{ releasever }}