From d297950c856f9acebf01824a319a93c40a99fcd0 Mon Sep 17 00:00:00 2001 From: Michael Simacek Date: Thu, 14 Apr 2016 12:19:59 +0200 Subject: [PATCH] Update koschei manual upgrade playbook --- playbooks/manual/upgrade/koschei.yml | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/playbooks/manual/upgrade/koschei.yml b/playbooks/manual/upgrade/koschei.yml index 96a2b42786..cc172719fd 100644 --- a/playbooks/manual/upgrade/koschei.yml +++ b/playbooks/manual/upgrade/koschei.yml @@ -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