It looks like this works!
- name: Get disk facts
community.windows.win_disk_facts:
- name: Print out disks!
community.windows.win_initialize_disk:
disk_number: "{{ disk.number }}"
loop: "{{ ansible_facts.disks }}"
loop_control:
loop_var: disk
when: ansible_disks[disk_number].guid is none
However, the output seems to be a large block of unused values. Is there a way to clean that up?
- AJ