-
Notifications
You must be signed in to change notification settings - Fork 4
/
Fleet_HyperCore_Config.yml
24 lines (22 loc) · 1.22 KB
/
Fleet_HyperCore_Config.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
---
- name: Retail-edge VM workload deployment playbook - create and update HyperCore VMs
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_unreachable: false
strategy: free # host_pinned # free #allows each cluster to start next task before all clusters have finished current task
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 }}"
SC_TIMEOUT: 120
roles:
- { role: random_site_name, when: site_name is not defined }
- hypercore_config
- template
- schedules
- { role: pharmacy, when: "'region2' in group_names" } # deploy_pharmacy is true }
- { role: pos, when: deploy_pos is true }
- { role: security, when: deploy_security is true }
- { role: iot, when: deploy_iot is true } # long running window iot deployment and configuration
# //TODO - above does not remove previously deployed roles when changed to false. could add to cleanup playbook