mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
18 lines
708 B
YAML
18 lines
708 B
YAML
|
- name: get disk facts on the target
|
||
|
win_disk_facts:
|
||
|
register: disks_found
|
||
|
|
||
|
- name: assert disk facts
|
||
|
assert:
|
||
|
that:
|
||
|
- disks_found.changed == false
|
||
|
- disks_found.ansible_facts.disks[0].size is defined
|
||
|
- disks_found.ansible_facts.disks[0].number is defined
|
||
|
- disks_found.ansible_facts.disks[0].operational_status is defined
|
||
|
- disks_found.ansible_facts.disks[0].read_only is defined
|
||
|
- disks_found.ansible_facts.disks[0].clustered is defined
|
||
|
- disks_found.ansible_facts.disks[0].location is defined
|
||
|
- disks_found.ansible_facts.disks[0].guid is defined
|
||
|
- disks_found.ansible_facts.disks[0].path is defined
|
||
|
- disks_found.ansible_facts.disks[0].bootable is defined
|