ansible/test/integration/targets/win_disk_facts/tasks/tests.yml
Wilmar den Ouden 40071e5db3 win_disk_facts: Adds Win32_DiskDrive object to facts (#51595)
* Adds win32_disk_drive object to win_disk_facts

* Names class parameter for Get-CimInstance as requested in the devdocs

* Maps whole class and adds docs

* Improve matching of disks when UniqueID is different format

* Improve logic for PNPDeviceID mapping

* Adds test for win32_disk_drive
2019-11-15 15:45:18 +10:00

18 lines
885 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.ansible_disks[0].number is defined
- disks_found.ansible_facts.ansible_disks[0].guid is defined
- disks_found.ansible_facts.ansible_disks[0].location is defined
- disks_found.ansible_facts.ansible_disks[0].path is defined
- disks_found.ansible_facts.ansible_disks[0].read_only is defined
- disks_found.ansible_facts.ansible_disks[0].clustered is defined
- disks_found.ansible_facts.ansible_disks[0].bootable is defined
- disks_found.ansible_facts.ansible_disks[0].physical_disk.size is defined
- disks_found.ansible_facts.ansible_disks[0].physical_disk.operational_status is defined
- disks_found.ansible_facts.ansible_disks[0].win32_disk_drive is defined