# ansible nfsclient error

**URL:** <https://forum.ansible.com/t/ansible-nfsclient-error/32558>\
**Category:** Ansible Project\
**Created:** [March 30, 2020, 6:15am UTC](https://forum.ansible.com/t/ansible-nfsclient-error/32558 "2020-03-30T06:15:14Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![sandy.hung](https://avatars.discourse-cdn.com/v4/letter/s/ecb155/32.png) [@sandy.hung](https://forum.ansible.com/u/sandy.hung)\
**Post date:** [March 30, 2020, 6:15am UTC](https://forum.ansible.com/t/ansible-nfsclient-error/32558/1 "2020-03-30T06:15:14Z")

</div>

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”

}

![](https://groups.google.com/group/ansible-project/attach/408058dd8faef/image003.jpg?part=0.1&authuser=0)

---

<div class="post-metadata">

**Author:** ![jean-yves](https://avatars.discourse-cdn.com/v4/letter/j/a587f6/32.png) [@jean-yves](https://forum.ansible.com/u/jean-yves)\
**Post date:** [March 30, 2020, 6:20am UTC](https://forum.ansible.com/t/ansible-nfsclient-error/32558/2 "2020-03-30T06:20:13Z")

</div>

Hi,

---

<div class="post-metadata">

**Author:** ![sandy.hung](https://avatars.discourse-cdn.com/v4/letter/s/ecb155/32.png) [@sandy.hung](https://forum.ansible.com/u/sandy.hung)\
**Post date:** [March 30, 2020, 6:36am UTC](https://forum.ansible.com/t/ansible-nfsclient-error/32558/3 "2020-03-30T06:36:32Z")

</div>

Hi

I change to src: ‘192.168.1.146:/share’

Then change authority 600

It’s show msg": “Error mounting nfs: mount.nfs: an incorrect mount option was specified\n”

BR

Sandy

---

<div class="post-metadata">

**Author:** ![jean-yves](https://avatars.discourse-cdn.com/v4/letter/j/a587f6/32.png) [@jean-yves](https://forum.ansible.com/u/jean-yves)\
**Post date:** [March 30, 2020, 6:55am UTC](https://forum.ansible.com/t/ansible-nfsclient-error/32558/4 "2020-03-30T06:55:19Z")

</div>

Hi,

Message is somewhat explicit, please look a little bit by yourself before posting, your mount options are not good :

[https://askubuntu.com/questions/786928/ubuntu-16-04-fstab-fails-with-nobootwait](https://askubuntu.com/questions/786928/ubuntu-16-04-fstab-fails-with-nobootwait)

Seems nobootwait isn’t exist anymore, remove it or replace it with nofail

Regards,

JYL
