Skip to content

Commit be7c9ae

Browse files
authored
Fix shell command formatting in YAML file
``` ERROR! We were unable to read either as JSON nor YAML, these are the errors we got from each: JSON: Expecting value: line 1 column 1 (char 0) Syntax Error while loading YAML. mapping values are not allowed in this context The error appears to be in '/home/runner/work/iac/iac/ansible/roles/ansible-mdadm/tasks/detect_unused_disks.yml': line 32, column 24, but may be elsewhere in the file depending on the exact syntax problem. The offending line appears to be: - name: detect_unused_disks | Get devices with filesystem shell: blkid | cut -d: -f1 | sort | uniq ^ here ```
1 parent 0c86044 commit be7c9ae

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tasks/detect_unused_disks.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
failed_when: false
3030

3131
- name: detect_unused_disks | Get devices with filesystem
32-
shell: blkid | cut -d: -f1 | sort | uniq
32+
shell: "blkid | cut -d: -f1 | sort | uniq"
3333
register: formatted_devices
3434
changed_when: false
3535
failed_when: false
@@ -45,4 +45,4 @@
4545
- name: detect_unused_disks | Debug unused disks found
4646
debug:
4747
msg: "Unused disks detected: {{ unused_disks }}"
48-
when: unused_disks | length > 0
48+
when: unused_disks | length > 0

0 commit comments

Comments
 (0)