Skip to content

Commit

Permalink
need dictsort here
Browse files Browse the repository at this point in the history
  • Loading branch information
swapdisk committed Jul 2, 2024
1 parent 805c8e3 commit 4de3b31
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions roles/bigboot/tasks/get_boot_device_info.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,9 @@

- name: Find the next partition
ansible.builtin.set_fact:
bigboot_next_partition_name: "{{ ansible_loop.nextitem.key | default(omit, true) }}"
with_dict: "{{ ansible_facts.devices[bigboot_boot_disk].partitions }}"
when: item.key == bigboot_boot_partition_name
bigboot_next_partition_name: "{{ ansible_loop.nextitem.0 | default(omit, true) }}"
when: item.0 == bigboot_boot_partition_name
loop: "{{ ansible_facts.devices[bigboot_boot_disk].partitions | dictsort }}"
loop_control:
extended: true

Expand Down

0 comments on commit 4de3b31

Please sign in to comment.