Debian Codegraph @

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

raw
1 # Test code for the vcenter license module.
2 # Copyright: (c) 2017, Dag Wieers <[email protected]>
3 # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
4
5 - name: Add a vCenter evaluation license
6 vcenter_license: &vcenter_lic_data
7 hostname: "{{ vcenter_hostname }}"
8 username: "{{ vcenter_username }}"
9 password: "{{ vcenter_password }}"
10 validate_certs: false
11 license: 00000-00000-00000-00000-00000
12 state: present
13
14 - name: Remove an (unused) vCenter evaluation license
15 vcenter_license:
16 <<: *vcenter_lic_data
17 state: absent
18
19 - name: Add an invalid vCenter license
20 vcenter_license:
21 <<: *vcenter_lic_data
22 license: 00000-00000-00000-00000-00001
23 state: present
24 register: vcenter_license_output
25 failed_when: '"is not existing or can not be added" not in vcenter_license_output.msg'