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'
|
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
|
||||||
|
|||||||
Reference in New Issue
Block a user