Dear all:
I can connect to this ip and share folder
tasks:
- name: Ensure NFS Common is installed
apt: name=nfs-common update_cache=yes
- name: Create mountable dir
file: path=/nfs state=directory mode=777 owner=sandy group=sandy
- name: set mountpoints
mount:
name: nfs
src: ‘192.168.1.146/share’
fstype: nfs
opts: defaults,nobootwait
dump: 0
passno: 2
state: mounted
fatal: [192.168.1.120]: FAILED! => {
“changed”: false,
“invocation”: {
“module_args”: {
“backup”: false,
“boot”: true,
“dump”: “0”,
“fstab”: null,
“fstype”: “nfs”,
“name”: “nfs”,
“opts”: “defaults,nobootwait”,
“passno”: “2”,
“path”: “nfs”,
“src”: “192.168.1.146/share”,
“state”: “mounted”
}
},
“msg”: “Error mounting nfs: mount.nfs: remote share not in ‘host:dir’ format\n”
}