b3ff93e129
* Added module new win_disk_facts * Corrected examples section * Added integration tests * Added some disk properties * Removed whitspaces * Extended docu * Changed header * Added partition, volume and physical disk output * Removed MediaType property of phys. disk * Added return values Added virtual disk, volume and physical disk output * Added docu for return values * Removed whitespaces * Improved and added values - Added virtual disk return values - Improved code * Updated docu * Removed whitespaces * Removed check * Improved code and docu * Changed integration test * Changed integration test * Changed integration test * Changed integration test * corrected typo * Added admin test because CIM is not available with user rights * Changed unit prefix from decimal to binary
17 lines
708 B
YAML
17 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
|