# mount module fails if there is a space in share name

**URL:** <https://forum.ansible.com/t/mount-module-fails-if-there-is-a-space-in-share-name/19690>\
**Category:** Ansible Project\
**Tags:** windows\
**Created:** [November 4, 2015, 4:23pm UTC](https://forum.ansible.com/t/mount-module-fails-if-there-is-a-space-in-share-name/19690 "2015-11-04T16:23:09Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jerker\_Montelius](https://avatars.discourse-cdn.com/v4/letter/j/7bcc69/32.png) [@Jerker\_Montelius](https://forum.ansible.com/u/Jerker_Montelius)\
**Post date:** [November 4, 2015, 4:23pm UTC](https://forum.ansible.com/t/mount-module-fails-if-there-is-a-space-in-share-name/19690/1 "2015-11-04T16:23:09Z")

</div>

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
