Force umount of nas volume, because there are conficts on error.

This commit is contained in:
2022-07-19 08:20:48 +02:00
parent 7ae0f45789
commit 9dc27025b2

View File

@@ -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 }}"