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 }})"
|
text: "{{ ansible_date_time.date }} {{ ansible_date_time.time }} (info): Playbook ran successful ({{ ansible_play_name }})"
|
||||||
|
|
||||||
rescue:
|
rescue:
|
||||||
|
- name: Umount nas volume
|
||||||
|
ansible.posix.mount:
|
||||||
|
path: /media/nas
|
||||||
|
state: unmounted
|
||||||
|
become: yes
|
||||||
|
|
||||||
- name: Inform Mattermost about error
|
- name: Inform Mattermost about error
|
||||||
uri:
|
uri:
|
||||||
url: "{{ mattermost_url }}"
|
url: "{{ mattermost_url }}"
|
||||||
|
|||||||
Reference in New Issue
Block a user