diff options
| author | Ahmed AbdelHalim <[email protected]> | 2026-06-22 13:08:22 +0200 |
|---|---|---|
| committer | Ahmed AbdelHalim <[email protected]> | 2026-06-22 13:08:22 +0200 |
| commit | f3a3a5aee727f849e62563fde643fcabe029b5b3 (patch) | |
| tree | c905dfd953f2b7503b5136ec62fb54b4c118b308 /molecule/raspberrypi/prepare.yml | |
| parent | b098d57899d03d1b7f536176a32a62c8b6e58784 (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.yml | 11 |
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 }}" |
