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
|
- /srv/web/infra/ansible/vars/{{ ansible_distribution }}.yml
|
||||||
|
|
||||||
tasks:
|
tasks:
|
||||||
|
- name: Generic upgrade tasks for copr servers
|
||||||
|
import_tasks: _generic_tasks.yml
|
||||||
|
|
||||||
- name: Upgrade copr-backend packages
|
- name: Upgrade copr-backend packages
|
||||||
dnf:
|
dnf:
|
||||||
state: latest
|
state: latest
|
||||||
name:
|
name:
|
||||||
- copr-backend
|
- copr-backend
|
||||||
- copr-selinux
|
- copr-selinux
|
||||||
|
- python3-copr
|
||||||
- python3-copr-common
|
- python3-copr-common
|
||||||
- python3-copr-messaging
|
- python3-copr-messaging
|
||||||
- prunerepo
|
- prunerepo
|
||||||
|
|
|
@ -10,6 +10,9 @@
|
||||||
- /srv/web/infra/ansible/vars/{{ ansible_distribution }}.yml
|
- /srv/web/infra/ansible/vars/{{ ansible_distribution }}.yml
|
||||||
|
|
||||||
tasks:
|
tasks:
|
||||||
|
- name: Generic upgrade tasks for copr servers
|
||||||
|
import_tasks: _generic_tasks.yml
|
||||||
|
|
||||||
- name: Upgrade copr-distgit packages
|
- name: Upgrade copr-distgit packages
|
||||||
dnf:
|
dnf:
|
||||||
state: latest
|
state: latest
|
||||||
|
@ -18,6 +21,7 @@
|
||||||
- dist-git-selinux
|
- dist-git-selinux
|
||||||
- copr-dist-git
|
- copr-dist-git
|
||||||
- copr-selinux
|
- copr-selinux
|
||||||
|
- python3-copr
|
||||||
- python3-copr-common
|
- python3-copr-common
|
||||||
update_cache: true
|
update_cache: true
|
||||||
|
|
||||||
|
|
|
@ -13,17 +13,19 @@
|
||||||
- /srv/web/infra/ansible/vars/{{ ansible_distribution }}.yml
|
- /srv/web/infra/ansible/vars/{{ ansible_distribution }}.yml
|
||||||
|
|
||||||
tasks:
|
tasks:
|
||||||
|
- name: Generic upgrade tasks for copr servers
|
||||||
|
import_tasks: _generic_tasks.yml
|
||||||
|
|
||||||
- name: Upgrade copr-frontend packages
|
- name: Upgrade copr-frontend packages
|
||||||
dnf:
|
dnf:
|
||||||
state: latest
|
state: latest
|
||||||
name:
|
name:
|
||||||
- copr-frontend
|
- copr-frontend
|
||||||
|
- copr-frontend-fedora
|
||||||
- copr-selinux
|
- copr-selinux
|
||||||
- python3-copr-common
|
- python3-copr-common
|
||||||
update_cache: true
|
update_cache: true
|
||||||
|
|
||||||
- package_facts: manager=auto
|
|
||||||
|
|
||||||
- name: cache the new package version
|
- name: cache the new package version
|
||||||
copy: content="{{ ansible_facts.packages['copr-frontend'][0].version }}"
|
copy: content="{{ ansible_facts.packages['copr-frontend'][0].version }}"
|
||||||
dest="{{ cache_file }}"
|
dest="{{ cache_file }}"
|
||||||
|
|
|
@ -10,6 +10,9 @@
|
||||||
- /srv/web/infra/ansible/vars/{{ ansible_distribution }}.yml
|
- /srv/web/infra/ansible/vars/{{ ansible_distribution }}.yml
|
||||||
|
|
||||||
tasks:
|
tasks:
|
||||||
|
- name: Generic upgrade tasks for copr servers
|
||||||
|
import_tasks: _generic_tasks.yml
|
||||||
|
|
||||||
- name: Upgrade copr-keygen packages
|
- name: Upgrade copr-keygen packages
|
||||||
dnf:
|
dnf:
|
||||||
state: latest
|
state: latest
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue