-
Notifications
You must be signed in to change notification settings - Fork 0
/
configSegrpmulti.yml
40 lines (35 loc) · 1.08 KB
/
configSegrpmulti.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
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
---
- hosts: localhost
connection: local
vars_files:
- vars/env_vars.yml
vars:
avi_credentials_site_a:
api_version: "{{ api_version }}"
username: "{{ username }}"
password: "{{ password }}"
controller: "{{ cluster_leader_ip_site_a }}"
roles:
- avinetworks.avisdk
tasks:
- name: Wait for Controller be ready
uri:
validate_certs: False
url: "http://{{ cluster_leader_ip_site_a }}/"
method: GET
status_code: 200,302,301,503
register: statusCode_output
until: statusCode_output.status == 200
retries: 120
delay: 60
- name: Create SE Group "{{ item.name }}"-group
avi_serviceenginegroup:
avi_credentials: "{{ avi_credentials_site_a }}"
tenant: "{{ tenant | default('admin') }}"
name: "{{ item.name }}-grp"
cloud_ref: '/api/cloud?name={{ cloud_name }}'
ha_mode: HA_MODE_SHARED
se_name_prefix: "{{ se_prefix }}"
instance_flavor: "{{ instance_flavor }}"
max_se: "{{ item.max_se_per_grp }}"
with_items: "{{ se_groups }}"