forked from ddemlow/ansible_edge_playbooks
-
Notifications
You must be signed in to change notification settings - Fork 0
/
healthcheck.yml
17 lines (16 loc) · 899 Bytes
/
healthcheck.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
---
- name: HyperCore Best Practices healthcheck
hosts: all # use ansible-playbook -l group to limit application to specific groups - has tab completion for -l !
connection: ansible.builtin.local
gather_facts: false
#ignore_errors: yes # chesks will log failure if out of compliance
#strategy: host_pinned # use default - want these tasks to all report in block together
environment: #if set here - hypercore modules will automatically use this for each remote cluster - avoiding need to specify cluster_instance for each test
SC_HOST: "https://{{ inventory_hostname }}"
SC_USERNAME: "{{ scale_user }}"
SC_PASSWORD: "{{ scale_pass }}"
roles:
- check-ide # check for vms with ide disks
- vm_cleanup # cleans up list of formerly used VMs
- iso_cleanup #removes isos defined in role
- hypercore_version # checks and corrects hypercore version vs. desired