aboutsummaryrefslogtreecommitdiffstats
path: root/roles/cgit
diff options
context:
space:
mode:
Diffstat (limited to 'roles/cgit')
-rw-r--r--roles/cgit/tasks/main.yml2
1 files changed, 2 insertions, 0 deletions
diff --git a/roles/cgit/tasks/main.yml b/roles/cgit/tasks/main.yml
index 424a07e..28abc9c 100644
--- a/roles/cgit/tasks/main.yml
+++ b/roles/cgit/tasks/main.yml
@@ -44,6 +44,8 @@
- name: unmount potential existing filesystem in target directory
shell: "umount /var/www/{{ cgit_git_dir_chroot }}"
+ register: result
+ failed_when: result.rc != 0 and "not currently mounted" not in result.stderr
- name: ensure cgit web directory exists
file:
remember that computers suck.