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.
|
||||
|
||||
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
|
||||
------------
|
||||
@@ -13,7 +13,7 @@ None
|
||||
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
|
||||
------------
|
||||
|
||||
@@ -18,7 +18,7 @@
|
||||
|
||||
roles:
|
||||
- role: genlab.common.mount_device
|
||||
devices:
|
||||
mount_device_devices:
|
||||
- what: "/tmp/test_file"
|
||||
where: "/test_mount"
|
||||
fstype: ext3
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
---
|
||||
- name: "Mount devices"
|
||||
with_items: "{{ devices }}"
|
||||
loop: "{{ mount_device_devices }}"
|
||||
ansible.posix.mount:
|
||||
fstype: "{{ item.fstype }}"
|
||||
path: "{{ item.where }}"
|
||||
|
||||
Reference in New Issue
Block a user