summaryrefslogtreecommitdiffstats
path: root/molecule/raspberrypi/prepare.yml
diff options
context:
space:
mode:
authorAhmed Abdelhalim <[email protected]>2026-06-22 13:08:22 +0200
committerAhmed Abdelhalim <[email protected]>2026-06-22 13:08:22 +0200
commitc903b87a23cedc56a29d023df50b649c0b9f1e59 (patch)
treec905dfd953f2b7503b5136ec62fb54b4c118b308 /molecule/raspberrypi/prepare.yml
parente8888c085bfc51aafeb24a6af20dcd1781d410e1 (diff)
Use more stable approach for testing devices and fix linting issues
This approach uses losetup to query the devices instead of flaky unstable cache!
Diffstat (limited to 'molecule/raspberrypi/prepare.yml')
-rw-r--r--molecule/raspberrypi/prepare.yml11
1 files changed, 6 insertions, 5 deletions
diff --git a/molecule/raspberrypi/prepare.yml b/molecule/raspberrypi/prepare.yml
index b34ca4c5..0d88f9d7 100644
--- a/molecule/raspberrypi/prepare.yml
+++ b/molecule/raspberrypi/prepare.yml
@@ -17,11 +17,12 @@
register: loop_device
changed_when: true
- - name: "Set test facts"
- ansible.builtin.set_fact:
- test_device: "{{ loop_device.stdout }}"
- cacheable: true
+ - name: "Format test device as ext4"
+ become: true
+ community.general.filesystem:
+ fstype: "ext4"
+ dev: "{{ loop_device.stdout }}"
- name: "Show test info"
ansible.builtin.debug:
- msg: "Test device: {{ test_device }}"
+ msg: "Test device: {{ loop_device.stdout }}"