diff options
author | binary <me@rgoncalves.se> | 2021-01-20 00:14:14 +0100 |
---|---|---|
committer | binary <me@rgoncalves.se> | 2021-01-20 00:14:14 +0100 |
commit | daeec7e455ff75c6be9ce236c628b4b8f76f516a (patch) | |
tree | 9be5fcb276c280aca25e046e356417572bc078dc /roles/cgit | |
parent | c471d81cd0173467b896d8afa33565de21095852 (diff) | |
download | infrastructure-daeec7e455ff75c6be9ce236c628b4b8f76f516a.tar.gz |
Ignore errors when no directory is mounted
Diffstat (limited to 'roles/cgit')
-rw-r--r-- | roles/cgit/tasks/main.yml | 2 |
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: |