Merge pull request #76 from corvus-migratorius/fix-mount-device
Fix mount_device
This commit is contained in:
@@ -3,7 +3,7 @@ mount_device
|
|||||||
|
|
||||||
Mount the given block device.
|
Mount the given block device.
|
||||||
|
|
||||||
This is essentially a thin wrapper about `ansible.posix.mount` created to standardize handling mounts.
|
This is essentially a thin wrapper around `ansible.posix.mount` created to standardize handling mounts.
|
||||||
|
|
||||||
Requirements
|
Requirements
|
||||||
------------
|
------------
|
||||||
@@ -13,7 +13,7 @@ None
|
|||||||
Role Variables
|
Role Variables
|
||||||
--------------
|
--------------
|
||||||
|
|
||||||
`devices`: a list of objects, describing which device should be mounted, and how (see below for an example)
|
- `mount_device_devices`: a list of objects, describing which device should be mounted, and how
|
||||||
|
|
||||||
Dependencies
|
Dependencies
|
||||||
------------
|
------------
|
||||||
|
|||||||
@@ -18,7 +18,7 @@
|
|||||||
|
|
||||||
roles:
|
roles:
|
||||||
- role: genlab.common.mount_device
|
- role: genlab.common.mount_device
|
||||||
devices:
|
mount_device_devices:
|
||||||
- what: "/tmp/test_file"
|
- what: "/tmp/test_file"
|
||||||
where: "/test_mount"
|
where: "/test_mount"
|
||||||
fstype: ext3
|
fstype: ext3
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
---
|
---
|
||||||
- name: "Mount devices"
|
- name: "Mount devices"
|
||||||
with_items: "{{ devices }}"
|
loop: "{{ mount_device_devices }}"
|
||||||
ansible.posix.mount:
|
ansible.posix.mount:
|
||||||
fstype: "{{ item.fstype }}"
|
fstype: "{{ item.fstype }}"
|
||||||
path: "{{ item.where }}"
|
path: "{{ item.where }}"
|
||||||
|
|||||||
Reference in New Issue
Block a user