Skip to content
This repository has been archived by the owner on Jan 6, 2023. It is now read-only.

Commit

Permalink
add check vmwaretools status (#4)
Browse files Browse the repository at this point in the history
* add check vmwaretools status

* folder param add
  • Loading branch information
jirolin authored Jan 23, 2021
1 parent e8bbb2b commit 2fc734b
Showing 1 changed file with 16 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,22 @@
delay: 10
retries: 300

- name: Check vmware tools status
vmware_guest_info:
hostname: "{{ molecule_yml.driver.vcenter_hostname }}"
username: "{{ molecule_yml.driver.vcenter_username }}"
password: "{{ molecule_yml.driver.vcenter_password }}"
validate_certs: "{{ molecule_yml.driver.validate_certs | default(false) }}"
datacenter: "{{ molecule_yml.driver.datacenter }}"
folder: "{{ molecule_yml.driver.folder }}"
name: "{{ item.name }}"
register: guest_state
until: "guest_state.instance.guest_tools_status == 'guestToolsRunning'"
delay: 10
retries: 300
loop: "{{ molecule_yml.platforms }}"
ignore_errors: true

- name: Enable WinRM
vmware_vm_shell:
hostname: "{{ molecule_yml.driver.vcenter_hostname }}"
Expand Down

0 comments on commit 2fc734b

Please sign in to comment.