From 8fc148dfec1eb1746065b80765d3466e8cbcf2be Mon Sep 17 00:00:00 2001 From: Mikolaj Izdebski Date: Tue, 22 May 2018 20:47:13 +0000 Subject: [PATCH] koji-sync: stop nfs before nuking /mnt/fedora_koji --- playbooks/manual/staging-sync/koji.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/playbooks/manual/staging-sync/koji.yml b/playbooks/manual/staging-sync/koji.yml index 5591c59584..c21e8d2c6f 100644 --- a/playbooks/manual/staging-sync/koji.yml +++ b/playbooks/manual/staging-sync/koji.yml @@ -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