Add playbook for Fedora upgrade to next release #25

Merged
mfocko merged 1 commit from fedora-release-upgrade into main 2020-10-31 12:24:10 +01:00
3 changed files with 36 additions and 0 deletions
Showing only changes of commit e7f54b1b53 - Show all commits

View file

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