Download and cache repos before stopping services for even shorter downtime

This commit is contained in:
Mikolaj Izdebski 2016-05-20 12:33:28 +00:00
parent 1755b8b1e4
commit ed0db5ecf8

View file

@ -17,6 +17,10 @@
ignore_errors: true
when: env != 'staging'
tasks:
- name: clean dnf metadata
command: dnf clean all
- name: create dnf metadata cache
command: dnf makecache
- name: stop services
service: name="{{ item }}" state=stopped
with_items:
@ -24,8 +28,6 @@
- koschei-polling
- koschei-resolver
- koschei-watcher
- name: clean dnf metadata
command: dnf clean all
- name: upgrade koschei from copr repo
dnf: name="{{ item }}" state=latest enablerepo=msimacek-koschei
when: env == 'staging' and testing
@ -60,6 +62,10 @@
ignore_errors: true
when: env != 'staging'
tasks:
- name: clean yum metadata
command: yum clean all
- name: create yum metadata cache
command: yum makecache
- name: stop httpd
service: name="httpd" state=stopped
- name: upgrade koschei from testing repo