I have an Ansible task:
- name: Ensure Gluster volume is mounted.
mount:
name: "{{ mount_dir }}"
src: "{{ inventory_hostname }}:{{ brick_name }}"
fstype: glusterfs
opts: "defaults,_netdev"
state: mounted
It fails with output:
fatal: [remotehost.com]: FAILED! => {"changed": false, "failed": true, "invocation": {"module_args": {"dump": null, "fstab": "/etc/fstab", "fstype": "glusterfs", "name": "ssl", "opts": "defaults,_netdev", "passno": null, "src": "remotehost.com:/craik/clm/ssl", "state": "mounted"}, "module_name": "mount"}, "msg": "Error mounting ssl: Mount failed. Please check the log file for more details.\n"}
Is it possible to see the actual Unix command that Ansible is translating the mount task to?
For example:
mount -t glusterfs remotehost.com:/craik/clm/ssl /srv/gluster/ssl