Note: The default ITS GitLab runner is a shared resource and is subject to slowdowns during heavy usage.
You can run your own GitLab runner that is dedicated just to your group if you need to avoid processing delays.

main.yml 749 Bytes
Newer Older
Adam Robinson's avatar
Adam Robinson committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
---
# handlers file for VMSA-2019-0011-Workaround
- name: Restart hostd
  shell: /etc/init.d/hostd restart && sleep 120
  vars:
    ansible_user: '{{ vmware_user }}@{{ ad_domain|upper }}'
    ansible_password: '{{ vmware_password }}'
    ansible_connection: paramiko
    ansible_python_interpreter: /bin/python

- name: Stop SSH
  vmware_host_service_manager:
    hostname: '{{ vcenter_hostname }}'
    esxi_hostname: '{{ inventory_hostname }}'
    username: '{{ vmware_user }}'
    password: '{{ vmware_password }}'
    service_name: TSM-SSH
    state: stop
  delegate_to: localhost
  when: not host_service_facts['host_service_facts'][inventory_hostname] | selectattr('key', 'equalto', 'TSM-SSH') | map(attribute='running') | list | first | bool