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:
|
handlers:
|
||||||
- include: "{{ handlers }}/restart_services.yml"
|
- include: "{{ handlers }}/restart_services.yml"
|
||||||
roles:
|
roles:
|
||||||
- koschei
|
- koschei/frontend
|
||||||
|
- koschei/backend
|
||||||
|
|
||||||
pre_tasks:
|
pre_tasks:
|
||||||
- name: schedule nagios downtime
|
- name: schedule nagios downtime
|
||||||
|
@ -24,13 +25,14 @@
|
||||||
- koschei-watcher
|
- koschei-watcher
|
||||||
- httpd
|
- httpd
|
||||||
- name: clean yum metadata
|
- name: clean yum metadata
|
||||||
command: yum clean all {% if env == 'staging' %} --enablerepo="koschei-jenkins" {% endif %}
|
command: yum clean all
|
||||||
- name: upgrade koschei package from jenkins
|
- name: upgrade koschei
|
||||||
package: name="koschei" state=latest enablerepo="koschei-jenkins"
|
package: name="{{ item }}" state=latest
|
||||||
when: env == 'staging'
|
with_items:
|
||||||
- name: upgrade koschei from main repo
|
- koschei-admin
|
||||||
package: name="koschei" state=latest
|
- koschei-backend
|
||||||
when: env != 'staging'
|
- koschei-backend-fedora
|
||||||
|
- koschei-frontend
|
||||||
- name: run db migration
|
- name: run db migration
|
||||||
become: yes
|
become: yes
|
||||||
become_user: koschei
|
become_user: koschei
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue