copr: upgrades: add missing packages for upgrade, update dnf-plugins-core
This commit is contained in:
parent
d88b4369fb
commit
17961dc5ce
5 changed files with 22 additions and 2 deletions
7
playbooks/manual/copr/_generic_tasks.yml
Normal file
7
playbooks/manual/copr/_generic_tasks.yml
Normal 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', '<')
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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 }}"
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue