-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path2_config_controllers.yml
98 lines (98 loc) · 2.94 KB
/
2_config_controllers.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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
# Author Remo Mattei
# Email: [email protected]
---
- hosts: localhost
connection: local
roles:
- role: avinetworks.avicontroller_vmware
- role: avinetworks.avisdk
- role: avinetworks.aviconfig
gather_facts: False
tasks:
- name: Wait for Controller be ready
uri:
validate_certs: False
url: "http://{{ controllers.0.mgmt_ip }}/"
method: GET
status_code: 200,302,301,503
register: statusCode_output
until: statusCode_output.status == 200
retries: 120
delay: 60
- name: Wait for controller 2 be ready
uri:
validate_certs: False
url: "http://{{ controllers.1.mgmt_ip }}/"
method: GET
status_code: 200,302,301,503
register: statusCode_output
until: statusCode_output.status == 200
retries: 120
delay: 60
tags:
- second_ctl
- name: Wait for controller 3 be ready
uri:
validate_certs: False
url: "http://{{ controllers.2.mgmt_ip }}/"
method: GET
status_code: 200,302,301,503
register: statusCode_output
until: statusCode_output.status == 200
retries: 120
delay: 60
tags:
- third_ctl
- name: Set admin password
avi_useraccount:
avi_credentials: '{{ avi_credentials }}'
old_password: '{{ old_password }}'
api_version: '{{ api_version }}'
controller: '{{ controllers.0.mgmt_ip }}'
tags:
- passwordavi
- name: Basic Controller Config
avi_systemconfiguration:
controller: '{{ controllers.0.mgmt_ip }}'
username: '{{ username }}'
password: '{{ password }}'
api_version: '{{ api_version }}'
email_configuration:
smtp_type: SMTP_LOCAL_HOST
from_email: '{{ avi_email }}'
global_tenant_config:
se_in_provider_context: True
tenant_access_to_provider_se: True
tenant_vrf: False
dns_configuration:
search_domain: '{{ search_domains }}'
server_list:
- type: V4
addr: '{{ dns_server01 }}'
- type: V4
addr: '{{ dns_server02 }}'
portal_configuration:
use_uuid_from_input: False
redirect_to_https: True
disable_remote_cli_shell: False
enable_clickjacking_protection: True
enable_http: True
enable_https: True
password_strength_check: True
allow_basic_authentication: False
disable_swagger: False
ntp_configuration:
ntp_servers:
- server:
type: DNS
addr: "{{ ntp_server01 }}"
- server:
type: DNS
addr: "{{ ntp_server02 }}"
default_license_tier: ENTERPRISE_18
welcome_workflow_complete: True
linux_configuration:
motd: "{{ motd_welcome }}"
banner: "{{ banner_txt }}"
tags:
- controllerconfig