Possible bug in mount module or docs

I am passing in these options to the mount module:

- name: Create fstab entries for custom mount points, and mount
  mount:
    fstype: "{{ item.type }}"
    name: "{{ item.name }}"
    src: "{{ item.src }}"
    passno: 10
    state: mounted
  when:
    - "{{ gluster_mounts | length > 0 }}"
  with_items:
    - "{{ gluster_mounts }}"

The hash looks like this:

gluster_mounts:
  - name: "{{ mail_mount }}"
    src: vmserver-a.kugler.localdomain:/export/email/brick
    type: glusterfs
    owner: dovecot
    group: dovecot
  - name: "{{ list_archive_mount }}"
    src: vmserver-a.kugler.localdomain:/export/list_archive/brick
    type: glusterfs
    owner: dovecot
    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 (2.41 KB)