koji-sync: stop nfs before nuking /mnt/fedora_koji

This commit is contained in:
Mikolaj Izdebski 2018-05-22 20:47:13 +00:00
parent 911bf02220
commit 8fc148dfec

View file

@ -99,6 +99,8 @@
- wipe-fs
tasks:
- name: stop nfs
service: name=nfs state=stopped
- name: unmount koji filesystem
mount: name=/mnt/fedora_koji state=unmounted
- name: wipe fedora_koji volume
@ -119,6 +121,8 @@
# TODO recreate directories under /mnt/koji/compose (which ones?) that composer expects to exist
- name: symlink production volume
file: src=/mnt/fedora_koji_prod/koji dest=/mnt/koji/vol/prod state=link
- name: restart nfs
service: name=nfs state=started
- name: restart httpd
service: name=httpd state=started
- name: restart kojira