Optionaly enable copr repo during koschei upgrade
This commit is contained in:
parent
467242053f
commit
97a517383a
1 changed files with 23 additions and 6 deletions
|
@ -4,6 +4,8 @@
|
||||||
- /srv/web/infra/ansible/vars/global.yml
|
- /srv/web/infra/ansible/vars/global.yml
|
||||||
- /srv/private/ansible/vars.yml
|
- /srv/private/ansible/vars.yml
|
||||||
- /srv/web/infra/ansible/vars/{{ ansible_distribution }}.yml
|
- /srv/web/infra/ansible/vars/{{ ansible_distribution }}.yml
|
||||||
|
vars:
|
||||||
|
testing: False
|
||||||
handlers:
|
handlers:
|
||||||
- include: "{{ handlers }}/restart_services.yml"
|
- include: "{{ handlers }}/restart_services.yml"
|
||||||
roles:
|
roles:
|
||||||
|
@ -17,10 +19,15 @@
|
||||||
tasks:
|
tasks:
|
||||||
- name: stop httpd
|
- name: stop httpd
|
||||||
service: name="httpd" state=stopped
|
service: name="httpd" state=stopped
|
||||||
- name: clean yum metadata
|
- name: upgrade koschei from testing repo
|
||||||
command: yum clean all
|
yum: name="{{ item }}" state=latest update_cache=yes enablerepo=copr
|
||||||
- name: upgrade koschei
|
when: testing
|
||||||
package: name="{{ item }}" state=latest
|
with_items:
|
||||||
|
- koschei-frontend
|
||||||
|
- koschei-frontend-fedora
|
||||||
|
- name: upgrade koschei from production repo
|
||||||
|
yum: name="{{ item }}" state=latest update_cache=yes
|
||||||
|
when: not testing
|
||||||
with_items:
|
with_items:
|
||||||
- koschei-frontend
|
- koschei-frontend
|
||||||
- koschei-frontend-fedora
|
- koschei-frontend-fedora
|
||||||
|
@ -31,6 +38,8 @@
|
||||||
- /srv/web/infra/ansible/vars/global.yml
|
- /srv/web/infra/ansible/vars/global.yml
|
||||||
- /srv/private/ansible/vars.yml
|
- /srv/private/ansible/vars.yml
|
||||||
- /srv/web/infra/ansible/vars/{{ ansible_distribution }}.yml
|
- /srv/web/infra/ansible/vars/{{ ansible_distribution }}.yml
|
||||||
|
vars:
|
||||||
|
testing: False
|
||||||
handlers:
|
handlers:
|
||||||
- include: "{{ handlers }}/restart_services.yml"
|
- include: "{{ handlers }}/restart_services.yml"
|
||||||
roles:
|
roles:
|
||||||
|
@ -51,8 +60,16 @@
|
||||||
- koschei-watcher
|
- koschei-watcher
|
||||||
- name: clean dnf metadata
|
- name: clean dnf metadata
|
||||||
command: dnf clean all
|
command: dnf clean all
|
||||||
- name: upgrade koschei
|
- name: upgrade koschei from copr repo
|
||||||
package: name="{{ item }}" state=latest
|
dnf: name="{{ item }}" state=latest enablerepo=copr
|
||||||
|
when: copr_repo
|
||||||
|
with_items:
|
||||||
|
- koschei-admin
|
||||||
|
- koschei-backend
|
||||||
|
- koschei-backend-fedora
|
||||||
|
- name: upgrade koschei from production repo
|
||||||
|
dnf: name="{{ item }}" state=latest
|
||||||
|
when: not copr_repo
|
||||||
with_items:
|
with_items:
|
||||||
- koschei-admin
|
- koschei-admin
|
||||||
- koschei-backend
|
- koschei-backend
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue