copr-frontend: upgrade using dnf command

The Ansible dnf module still fails to update packages to the latest
versions, for an unknown reason.
This commit is contained in:
Pavel Raiskup 2025-03-26 08:06:49 +01:00
parent d2873f81f7
commit 33e01feafc

View file

@ -28,14 +28,8 @@
when: frontend_has_update.changed
- name: Upgrade copr-frontend packages
dnf:
state: latest
name:
- copr-frontend
- copr-frontend-fedora
- copr-selinux
- python3-copr-common
update_cache: true
ansible.builtin.shell: dnf update -y copr-frontend copr-frontend-fedora copr-selinux python3-copr-common
when: frontend_has_update.changed
- name: Upgrade db to head, logs in /var/log/copr-frontend/migrations.log
ansible.builtin.shell: alembic-3 upgrade head &> /var/log/copr-frontend/migrations.log