Hi Felix , Thank you for the input. By combining the src and nfs servers to src variable I am able to get rid of one space but I have a variable path where I have this problem. not sure how to handle variable path? and for the opts i did get rid of fsck check which will default is zero
source: "192.50.250.2:/P1" opts: "nfsvers=3,soft,bg,timeo=12" 10.50.226.248:/POOL1*\040* /POOL1 nfs nfsvers=3,soft,bg,timeo=12 0 0 I am just looking to get rid of the \040 on the path variable. Thanks, Deepak Kumar On Tue, Aug 22, 2023 at 5:09 PM 'Felix Fontein' via Ansible Project < [email protected]> wrote: > Hi, > > please take a look at your task: > > > - name: Mount NFS directories P1 > > become: true > > remote_user: testops > > ansible.posix.mount: > > fstype: "{{ mount_point[0].fstype }}" > > src: "{{ mount_point[0].nfs_server }} {{ mount_point[0].source > > }} " > > you are *explicitly* asking for `src` to have a space in the middle and > one at the end. Since spaces are used as separators in /etc/fstab, the > module correctly quotes your `src` value with space being replaced by > \040. > > The same is true for \040 in the options, that comes from the value you > provide, which contains spaces: > > > opts: "nfsvers=3,soft,bg,timeo=12 0 0" > > Cheers, > Felix > > > -- > You received this message because you are subscribed to the Google Groups > "Ansible Project" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/ansible-project/20230822133946.409f0f38%40rovaniemi > . > -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/CAF%3DeWbLpQq7wBP62VU%3DNhdq81EEzjcR_2q_DHuMShSH-z6%3DjRg%40mail.gmail.com.
