From 9dc27025b22df7ce49abec22dbcdf7bf9d724e11 Mon Sep 17 00:00:00 2001 From: Christian Steinle Date: Tue, 19 Jul 2022 08:20:48 +0200 Subject: [PATCH] Force umount of nas volume, because there are conficts on error. --- nas.yaml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/nas.yaml b/nas.yaml index 92c4702..66a60a0 100644 --- a/nas.yaml +++ b/nas.yaml @@ -67,6 +67,12 @@ text: "{{ ansible_date_time.date }} {{ ansible_date_time.time }} (info): Playbook ran successful ({{ ansible_play_name }})" rescue: + - name: Umount nas volume + ansible.posix.mount: + path: /media/nas + state: unmounted + become: yes + - name: Inform Mattermost about error uri: url: "{{ mattermost_url }}"