Add playbook for Fedora upgrade to next release

Signed-off-by: Matej Focko <me@mfocko.xyz>
This commit is contained in:
Matej Focko 2020-10-31 12:22:58 +01:00
parent ec504f50cf
commit e7f54b1b53
No known key found for this signature in database
GPG key ID: DE0CF444096A468D
3 changed files with 36 additions and 0 deletions

View file

@ -6,6 +6,9 @@ AP := ansible-playbook -vv -K -c local -i localhost, -e ansible_python_interpret
fedora-bootstrap:
$(AP) playbooks/fedora.yml
fedora-release-upgrade:
$(AP) playbooks/fedora_upgrade.yml
deps:
ansible-galaxy collection install community.general

View file

@ -0,0 +1,9 @@
---
- name: Fedora upgrade
hosts: all
roles:
- role: fedora/upgrade
become: yes
become_method: sudo
vars:
releasever: 33

View file

@ -0,0 +1,24 @@
---
- 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 }}