Update koschei manual upgrade playbook
This commit is contained in:
parent
8553678c1a
commit
d297950c85
1 changed files with 10 additions and 8 deletions
|
@ -7,7 +7,8 @@
|
|||
handlers:
|
||||
- include: "{{ handlers }}/restart_services.yml"
|
||||
roles:
|
||||
- koschei
|
||||
- koschei/frontend
|
||||
- koschei/backend
|
||||
|
||||
pre_tasks:
|
||||
- name: schedule nagios downtime
|
||||
|
@ -24,13 +25,14 @@
|
|||
- koschei-watcher
|
||||
- httpd
|
||||
- name: clean yum metadata
|
||||
command: yum clean all {% if env == 'staging' %} --enablerepo="koschei-jenkins" {% endif %}
|
||||
- name: upgrade koschei package from jenkins
|
||||
package: name="koschei" state=latest enablerepo="koschei-jenkins"
|
||||
when: env == 'staging'
|
||||
- name: upgrade koschei from main repo
|
||||
package: name="koschei" state=latest
|
||||
when: env != 'staging'
|
||||
command: yum clean all
|
||||
- name: upgrade koschei
|
||||
package: name="{{ item }}" state=latest
|
||||
with_items:
|
||||
- koschei-admin
|
||||
- koschei-backend
|
||||
- koschei-backend-fedora
|
||||
- koschei-frontend
|
||||
- name: run db migration
|
||||
become: yes
|
||||
become_user: koschei
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue