aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbinary <me@rgoncalves.se>2021-01-20 00:14:14 +0100
committerbinary <me@rgoncalves.se>2021-01-20 00:14:14 +0100
commitdaeec7e455ff75c6be9ce236c628b4b8f76f516a (patch)
tree9be5fcb276c280aca25e046e356417572bc078dc
parentc471d81cd0173467b896d8afa33565de21095852 (diff)
downloadinfrastructure-daeec7e455ff75c6be9ce236c628b4b8f76f516a.tar.gz
Ignore errors when no directory is mounted
-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.