Force umount of nas volume, because there are conficts on error.
This commit is contained in:
6
nas.yaml
6
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 }}"
|
||||
|
||||
Reference in New Issue
Block a user