mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-07 22:02:50 +00:00
VMware: Add check mode support to module vmware_host_acceptance (#46260)
* Improve module description * Add check mode support
This commit is contained in:
committed by
Abhijeet Kasurde
parent
0dc7f38787
commit
ab26119637
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user