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