VMware: Add check mode support to module vmware_host_acceptance (#46260)

* Improve module description
* Add check mode support
This commit is contained in:
Christian Kotte
2018-10-04 12:27:33 +02:00
committed by Abhijeet Kasurde
parent 0dc7f38787
commit ab26119637
2 changed files with 27 additions and 4 deletions

View File

@@ -61,3 +61,21 @@
- assert:
that:
- host_acceptance_facts.facts is defined
- name: Change acceptance level of given hosts in check mode
vmware_host_acceptance:
hostname: "{{ vcsim }}"
username: "{{ user }}"
password: "{{ passwd }}"
esxi_hostname: "{{ host1 }}"
validate_certs: no
acceptance_level: vmware_certified
state: present
register: host_acceptance_facts_check_mode
check_mode: yes
- debug: var=host_acceptance_facts_check_mode
- assert:
that:
- host_acceptance_facts_check_mode.facts is defined