Use wait for connection and adjust nfs mount point.
This commit is contained in:
9
nas.yaml
9
nas.yaml
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user