Debian Codegraph @

ansible_collections/community/vmware/tests/integration/targets/vmware_host_scanhba/tasks/main.yml

raw
1 # Test code for the vmware_host_scanhba module.
2 # Copyright: (c) 2019, Michael Eaton <[email protected]>
3 # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
4 - import_role:
5 name: prepare_vmware_tests
6 vars:
7 setup_attach_host: true
8
9 - name: Recan HBA's for an entire cluster (there should be at least one host as above)
10 vmware_host_scanhba:
11 hostname: "{{ vcenter_hostname }}"
12 username: "{{ vcenter_username }}"
13 password: "{{ vcenter_password }}"
14 validate_certs: false
15 cluster_name: '{{ ccr1 }}'
16 refresh_storage: false
17 register: host_scan_results
18 - debug: msg="{{ host_scan_results }}"
19 - name: ensure a change occured (as in the scan happened) and the task didnt fail
20 assert:
21 that:
22 - host_scan_results.changed
23 - not host_scan_results.failed