diff options
author | Christian Kotte <christian.kotte@gmx.de> | 2018-10-12 11:46:12 +0200 |
---|---|---|
committer | Abhijeet Kasurde <akasurde@redhat.com> | 2018-10-12 11:46:12 +0200 |
commit | ade5d938c32de854b5ad87df60846730e7a4262a (patch) | |
tree | 5d0ee074fab35a253fd96a4bb68c014729dd7d8f /test/integration/targets/vmware_host_config_manager | |
parent | ldap_attr: typecast values to list (#46818) (diff) | |
download | ansible-ade5d938c32de854b5ad87df60846730e7a4262a.tar.xz ansible-ade5d938c32de854b5ad87df60846730e7a4262a.zip |
VMware: Improve module vmware_host_config_manager (#46264)
* Improve module description
* Add check mode support and change message
Diffstat (limited to 'test/integration/targets/vmware_host_config_manager')
-rw-r--r-- | test/integration/targets/vmware_host_config_manager/tasks/main.yml | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/test/integration/targets/vmware_host_config_manager/tasks/main.yml b/test/integration/targets/vmware_host_config_manager/tasks/main.yml index 70bf9c04bc..e28aea6bc5 100644 --- a/test/integration/targets/vmware_host_config_manager/tasks/main.yml +++ b/test/integration/targets/vmware_host_config_manager/tasks/main.yml @@ -86,3 +86,37 @@ assert: that: - all_hosts_result.changed + +- name: Change facts about all hosts in given cluster in check mode + vmware_host_config_manager: + hostname: "{{ vcsim }}" + username: "{{ vcsim_instance.json.username }}" + password: "{{ vcsim_instance.json.password }}" + cluster_name: "{{ ccr1 }}" + options: + 'Config.HostAgent.log.level': 'verbose' + validate_certs: no + register: all_hosts_result_check_mode + check_mode: yes + +- name: ensure changes are done to all hosts + assert: + that: + - all_hosts_result_check_mode.changed + +- name: Change facts about a given host in check mode + vmware_host_config_manager: + hostname: "{{ vcsim }}" + username: "{{ vcsim_instance.json.username }}" + password: "{{ vcsim_instance.json.password }}" + esxi_hostname: "{{ host1 }}" + options: + 'Config.HostAgent.log.level': 'info' + validate_certs: no + register: host_result_check_mode + check_mode: yes + +- name: ensure changes are done to given hosts + assert: + that: + - all_hosts_result_check_mode.changed |