-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathFleet_UseHyperCore_Inventory.yml
22 lines (17 loc) · 1.36 KB
/
Fleet_UseHyperCore_Inventory.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
---
- name: Retail-edge VM in-guest configuration playbook
hosts: edge # use ansible-playbook -l group to limit application to specific hypercore groups - has tab completion for -l !
connection: ansible.builtin.local
gather_facts: 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 | default('admin') }}"
SC_PASSWORD: "{{ scale_pass | default('admin') }}"
tasks:
- name: windows iot guest congfig
ansible.builtin.command: ansible-playbook -i ./inventory/hypercore_vm_inventory_windows.yml windows_iot_config.yml #uses hypercore inventory plugin for each cluster (based on environment)
- name: linux guest config - deploy cms
ansible.builtin.command: ansible-playbook -i ./inventory/hypercore_vm_inventory.yml using_hypercore_inventory.yml #uses hypercore inventory plugin for each cluster (based on environment)
- name: azure arc linux onboard
ansible.builtin.command: ansible-playbook -i ./inventory/hypercore_vm_inventory.yml AzureArcLinuxOnboard.yml #uses hypercore inventory plugin for each cluster (based on environment)