Download and cache repos before stopping services for even shorter downtime
This commit is contained in:
parent
1755b8b1e4
commit
ed0db5ecf8
1 changed files with 8 additions and 2 deletions
|
@ -17,6 +17,10 @@
|
||||||
ignore_errors: true
|
ignore_errors: true
|
||||||
when: env != 'staging'
|
when: env != 'staging'
|
||||||
tasks:
|
tasks:
|
||||||
|
- name: clean dnf metadata
|
||||||
|
command: dnf clean all
|
||||||
|
- name: create dnf metadata cache
|
||||||
|
command: dnf makecache
|
||||||
- name: stop services
|
- name: stop services
|
||||||
service: name="{{ item }}" state=stopped
|
service: name="{{ item }}" state=stopped
|
||||||
with_items:
|
with_items:
|
||||||
|
@ -24,8 +28,6 @@
|
||||||
- koschei-polling
|
- koschei-polling
|
||||||
- koschei-resolver
|
- koschei-resolver
|
||||||
- koschei-watcher
|
- koschei-watcher
|
||||||
- name: clean dnf metadata
|
|
||||||
command: dnf clean all
|
|
||||||
- name: upgrade koschei from copr repo
|
- name: upgrade koschei from copr repo
|
||||||
dnf: name="{{ item }}" state=latest enablerepo=msimacek-koschei
|
dnf: name="{{ item }}" state=latest enablerepo=msimacek-koschei
|
||||||
when: env == 'staging' and testing
|
when: env == 'staging' and testing
|
||||||
|
@ -60,6 +62,10 @@
|
||||||
ignore_errors: true
|
ignore_errors: true
|
||||||
when: env != 'staging'
|
when: env != 'staging'
|
||||||
tasks:
|
tasks:
|
||||||
|
- name: clean yum metadata
|
||||||
|
command: yum clean all
|
||||||
|
- name: create yum metadata cache
|
||||||
|
command: yum makecache
|
||||||
- name: stop httpd
|
- name: stop httpd
|
||||||
service: name="httpd" state=stopped
|
service: name="httpd" state=stopped
|
||||||
- name: upgrade koschei from testing repo
|
- name: upgrade koschei from testing repo
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue