of course lsblk likes to re-order the partitions listed for REASONS

This commit is contained in:
Mark Riedesel 2024-11-20 14:22:15 -06:00
parent 1ed7a30854
commit ecff8f2050

View file

@ -82,7 +82,7 @@
item[part_index+1]
]
}}
loop: "{{ lsblk.results | map(attribute='stdout_lines') }}"
loop: "{{ lsblk.results | map(attribute='stdout_lines') | sort }}"
vars:
part_index: 0
@ -117,7 +117,7 @@
item[part_index+1]
]
}}
loop: "{{ lsblk.results | map(attribute='stdout_lines') }}"
loop: "{{ lsblk.results | map(attribute='stdout_lines') | sort }}"
vars:
part_index: 1
@ -153,7 +153,7 @@
item[part_index+1]
]
}}
loop: "{{ lsblk.results | map(attribute='stdout_lines') }}"
loop: "{{ lsblk.results | map(attribute='stdout_lines') | sort }}"
vars:
part_index: 2