Skip to content

Commit

Permalink
updated timer
Browse files Browse the repository at this point in the history
  • Loading branch information
mccbryan3 committed Apr 24, 2020
1 parent b868a95 commit 9f74a3b
Showing 1 changed file with 14 additions and 9 deletions.
23 changes: 14 additions & 9 deletions pb.vm_template_updates.yaml
Expand Up @@ -29,16 +29,11 @@
when: template_name is defined
register: vm_out

- name: Add the host
add_host:
name: "{{ vm_out.instance.hw_name }}"
ansible_connection: winrm
ansible_port: 5986
ansible_host: "{{ vm_out.instance.ipv4 }}"
ansible_user: "{{ windows_user }}"
ansible_password: "{{ windows_user_pass }}"
no_log: true

- name: Summer Donna
pause:
seconds: 30

- name: Upgrade VM Tools on "{{ template_name }}"
vmware_guest_tools_upgrade:
hostname: "{{ vcenter_server }}"
Expand All @@ -48,6 +43,16 @@
validate_certs: no
name: "{{ template_name }}"

- name: Add the host
add_host:
name: "{{ vm_out.instance.hw_name }}"
ansible_connection: winrm
ansible_port: 5986
ansible_host: "{{ vm_out.instance.ipv4 }}"
ansible_user: "{{ windows_user }}"
ansible_password: "{{ windows_user_pass }}"
no_log: true

- name: Include the windows update task
include: tasks/tsk.win-updates-gen.yaml
delegate_to: "{{ vm_out.instance.hw_name }}"
Expand Down

0 comments on commit 9f74a3b

Please sign in to comment.