Use wait for connection and adjust nfs mount point.

This commit is contained in:
2022-07-19 08:03:37 +02:00
parent 29b5aec784
commit 7ae0f45789

View File

@@ -14,9 +14,10 @@
mac: '54:04:a6:f1:9b:80'
- name: Wait nas is responding
wait_for:
timeout: 90
delegate_to: localhost
wait_for_connection:
timeout: 120
delay: 5
sleep: 5
- name: Gathering facts
setup:
@@ -28,7 +29,7 @@
- name: Mount nas volume
ansible.posix.mount:
src: 192.168.178.50:/data
src: 192.168.178.50:/export/data
path: /media/nas
state: mounted
fstype: nfs