From 591a211144a18fa8b2e8f2b9d4c89c08c035bf9f Mon Sep 17 00:00:00 2001 From: Alexander Gorelyshev Date: Sun, 28 Dec 2025 22:04:14 +0400 Subject: [PATCH 1/2] Fix an inconsistently named variable --- roles/mount_device/molecule/default/converge.yml | 2 +- roles/mount_device/tasks/main.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/roles/mount_device/molecule/default/converge.yml b/roles/mount_device/molecule/default/converge.yml index abb2a3b..826e40b 100644 --- a/roles/mount_device/molecule/default/converge.yml +++ b/roles/mount_device/molecule/default/converge.yml @@ -18,7 +18,7 @@ roles: - role: genlab.common.mount_device - devices: + mount_device_devices: - what: "/tmp/test_file" where: "/test_mount" fstype: ext3 diff --git a/roles/mount_device/tasks/main.yml b/roles/mount_device/tasks/main.yml index ffd5ebf..cb52bb8 100644 --- a/roles/mount_device/tasks/main.yml +++ b/roles/mount_device/tasks/main.yml @@ -1,6 +1,6 @@ --- - name: "Mount devices" - with_items: "{{ devices }}" + loop: "{{ mount_device_devices }}" ansible.posix.mount: fstype: "{{ item.fstype }}" path: "{{ item.where }}" From 09a684cc1751e543b0bab0bb47b29f316293c500 Mon Sep 17 00:00:00 2001 From: Alexander Gorelyshev Date: Sun, 28 Dec 2025 22:04:24 +0400 Subject: [PATCH 2/2] Update the `README.md` --- roles/mount_device/README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/roles/mount_device/README.md b/roles/mount_device/README.md index b31db8a..290d626 100644 --- a/roles/mount_device/README.md +++ b/roles/mount_device/README.md @@ -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 ------------