Possible bug in mount module or docs

23 views
Skip to first unread message

Joshua J. Kugler

unread,
Apr 9, 2016, 2:33:45 AM4/9/16
to Ansible Project
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

--
Joshua J. Kugler - Fairbanks, Alaska
Azariah Enterprises - Programming and Website Design
jos...@azariah.com - Jabber: peda...@gmail.com
PGP Key: http://pgp.mit.edu/ ID 0x73B13B6A
mount_error.txt
Reply all
Reply to author
Forward
0 new messages