Merge pull request #76 from corvus-migratorius/fix-mount-device

Fix mount_device
This commit is contained in:
Alexander Gorelyshev
2025-12-28 22:07:54 +04:00
committed by GitHub
3 changed files with 4 additions and 4 deletions

View File

@@ -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
------------

View File

@@ -18,7 +18,7 @@
roles:
- role: genlab.common.mount_device
devices:
mount_device_devices:
- what: "/tmp/test_file"
where: "/test_mount"
fstype: ext3

View File

@@ -1,6 +1,6 @@
---
- name: "Mount devices"
with_items: "{{ devices }}"
loop: "{{ mount_device_devices }}"
ansible.posix.mount:
fstype: "{{ item.fstype }}"
path: "{{ item.where }}"