# Possible bug in mount module or docs

**URL:** <https://forum.ansible.com/t/possible-bug-in-mount-module-or-docs/21113>\
**Category:** Ansible Project\
**Created:** [April 9, 2016, 6:33am UTC](https://forum.ansible.com/t/possible-bug-in-mount-module-or-docs/21113 "2016-04-09T06:33:34Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Joshua\_J\_Kugler](https://avatars.discourse-cdn.com/v4/letter/j/ecc23a/32.png) [@Joshua\_J\_Kugler](https://forum.ansible.com/u/Joshua_J_Kugler)\
**Post date:** [April 9, 2016, 6:33am UTC](https://forum.ansible.com/t/possible-bug-in-mount-module-or-docs/21113/1 "2016-04-09T06:33:34Z")

</div>

I am passing in these options to the mount module:

- name: Create fstab entries for custom mount points, and mount  
&nbsp;&nbsp;mount:  
&nbsp;&nbsp;&nbsp;&nbsp;fstype: "{{ item.type }}"  
&nbsp;&nbsp;&nbsp;&nbsp;name: "{{ item.name }}"  
&nbsp;&nbsp;&nbsp;&nbsp;src: "{{ item.src }}"  
&nbsp;&nbsp;&nbsp;&nbsp;passno: 10  
&nbsp;&nbsp;&nbsp;&nbsp;state: mounted  
&nbsp;&nbsp;when:  
&nbsp;&nbsp;&nbsp;&nbsp;- "{{ gluster\_mounts | length \> 0 }}"  
&nbsp;&nbsp;with\_items:  
&nbsp;&nbsp;&nbsp;&nbsp;- "{{ gluster\_mounts }}"

The hash looks like this:

gluster\_mounts:  
&nbsp;&nbsp;- name: "{{ mail\_mount }}"  
&nbsp;&nbsp;&nbsp;&nbsp;src: vmserver-a.kugler.localdomain:/export/email/brick  
&nbsp;&nbsp;&nbsp;&nbsp;type: glusterfs  
&nbsp;&nbsp;&nbsp;&nbsp;owner: dovecot  
&nbsp;&nbsp;&nbsp;&nbsp;group: dovecot  
&nbsp;&nbsp;- name: "{{ list\_archive\_mount }}"  
&nbsp;&nbsp;&nbsp;&nbsp;src: vmserver-a.kugler.localdomain:/export/list\_archive/brick  
&nbsp;&nbsp;&nbsp;&nbsp;type: glusterfs  
&nbsp;&nbsp;&nbsp;&nbsp;owner: dovecot  
&nbsp;&nbsp;&nbsp;&nbsp;group: dovecot

The error generated is attached, but the important part is this:

AttributeError: 'int' object has no attribute 'replace'

The documentation doesn't say that 'passno' should be a string (and since it  
is a number, one would not expect it to be a string). However, when I put 10  
in quotes, like '10' the command runs to completion without throwing the error  
(that is, the lines get added to /etc/fstab).

Should the mount module be able to accept an integer for the passno parameter?

j

> **(attachments)**
>
> [mount\_error.txt](https://forum.ansible.com/uploads/short-url/8T3wwIWoy7p3oYlmyJoUvV4UTkJ.txt) (2.41 KB)
