fix ansible-lint errors

This commit is contained in:
Sergey Malyuk
2025-12-18 10:41:25 +03:00
parent a3b0172ddc
commit cb482a6635
3 changed files with 12 additions and 12 deletions

View File

@@ -7,19 +7,19 @@
tasks:
- name: "Attach the file to a loop device"
ansible.builtin.command: losetup /dev/loop3 /tmp/test_file
register: loop_device
changed_when: loop_device.rc != 0
register: mkfs_loop_device
changed_when: mkfs_loop_device.rc != 0
- name: "Verify the filesystem type"
ansible.builtin.command: blkid /dev/loop3
register: blkid_output
changed_when: blkid_output.rc != 0
register: mkfs_blkid_output
changed_when: mkfs_blkid_output.rc != 0
- name: "Ensure filesystem is ext3"
ansible.builtin.assert:
that:
- "'TYPE=\"ext3\"' in blkid_output.stdout"
- "'TYPE=\"ext3\"' in mkfs_blkid_output.stdout"
- name: "Explore stdout"
ansible.builtin.debug:
var: blkid_output.stdout
var: mkfs_blkid_output.stdout