copr: upgrades: add missing packages for upgrade, update dnf-plugins-core

This commit is contained in:
Pavel Raiskup 2020-01-14 11:19:32 +01:00 committed by Pierre-Yves Chibon
parent d88b4369fb
commit 17961dc5ce
5 changed files with 22 additions and 2 deletions

View file

@ -0,0 +1,7 @@
- name: detect package versions
package_facts: manager=auto
- name: assure minimal versions of dnf-plugins-core
dnf: name=dnf-plugins-core
state=latest
when: ansible_facts.packages['dnf-plugins-core'][0].version is version('4.0.12', '<')

View file

@ -10,12 +10,16 @@
- /srv/web/infra/ansible/vars/{{ ansible_distribution }}.yml
tasks:
- name: Generic upgrade tasks for copr servers
import_tasks: _generic_tasks.yml
- name: Upgrade copr-backend packages
dnf:
state: latest
name:
- copr-backend
- copr-selinux
- python3-copr
- python3-copr-common
- python3-copr-messaging
- prunerepo

View file

@ -10,6 +10,9 @@
- /srv/web/infra/ansible/vars/{{ ansible_distribution }}.yml
tasks:
- name: Generic upgrade tasks for copr servers
import_tasks: _generic_tasks.yml
- name: Upgrade copr-distgit packages
dnf:
state: latest
@ -18,6 +21,7 @@
- dist-git-selinux
- copr-dist-git
- copr-selinux
- python3-copr
- python3-copr-common
update_cache: true

View file

@ -13,17 +13,19 @@
- /srv/web/infra/ansible/vars/{{ ansible_distribution }}.yml
tasks:
- name: Generic upgrade tasks for copr servers
import_tasks: _generic_tasks.yml
- name: Upgrade copr-frontend packages
dnf:
state: latest
name:
- copr-frontend
- copr-frontend-fedora
- copr-selinux
- python3-copr-common
update_cache: true
- package_facts: manager=auto
- name: cache the new package version
copy: content="{{ ansible_facts.packages['copr-frontend'][0].version }}"
dest="{{ cache_file }}"

View file

@ -10,6 +10,9 @@
- /srv/web/infra/ansible/vars/{{ ansible_distribution }}.yml
tasks:
- name: Generic upgrade tasks for copr servers
import_tasks: _generic_tasks.yml
- name: Upgrade copr-keygen packages
dnf:
state: latest