-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfigSegroup.yml
46 lines (37 loc) · 1.17 KB
/
configSegroup.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
41
42
43
44
---
- hosts: localhost
gather_facts: no
connection: local
vars_files: "{{ var_file }}"
#- vars/env_vars.yml
vars:
avi_credentials:
api_version: "{{ api_version }}"
username: "{{ username }}"
password: "{{ password }}"
controller: "{{ cluster_leader_ip_site_a }}"
roles:
- role: 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 a Service Engine Group
avi_serviceenginegroup:
avi_credentials: "{{ avi_credentials }}"
tenant: "{{ tenant | default('admin') }}"
cloud_ref: '/api/cloud?name={{ cloud_name }}'
name: "{{ se_grp_name }}"
ha_mode: HA_MODE_SHARED_PAIR
use_standard_alb: True
max_vs_per_se: "{{ max_vs_per_se | default('20') }}"
se_name_prefix: "{{ se_prefix }}"
instance_flavor: "{{ instance_flavor }}"
max_se: "{{ max_se_per_grp }}"