mount module fails if there is a space in share name

16 views
Skip to first unread message

Jerker Montelius

unread,
Nov 4, 2015, 11:48:07 AM11/4/15
to Ansible Project
Hello
I have a Windows share that is called "//filserver/Shared Folders"
                                                                              ---^
With a space in the share name

When I try to write a mount line i ansible for it it fails miserably

  - name: mount file share
    mount: name=/mnt/fileshare src="//filserver/Shared Folders" fstype=cifs opts='credentials=/credentials.txt' state=mounted

?????
Apparently it don’t escape the space when trying to write to /etc/fstab

Reply all
Reply to author
Forward
0 new messages