forked from llima3000/ansibledevops
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfigController.yml
78 lines (74 loc) · 2.29 KB
/
configController.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
---
#ansible-playbook configController.yml -e "controller=10.10.29.250"
- hosts: localhost
connection: local
vars:
controller: 10.91.55.10
username: admin
api_version: 17.2.7
password: Avi123$%
old_password: 58NFaGDJm(PJH0G
from_email: [email protected]
dns_server01: 8.8.8.8
dns_server02: 8.8.4.4
ntp_server01: 0.us.pool.ntp.org
ntp_server02: 1.us.pool.ntp.org
roles:
- { role: avinetworks.avicontroller-vmware }
- { role: avinetworks.avisdk }
tasks:
- name: Wait for Controller be ready
uri:
validate_certs: False
url: "http://{{ controller }}/"
method: GET
status_code: 200,302,301,503
register: statusCode_output
until: statusCode_output.status == 200
retries: 120
delay: 60
- name: Change admin default password
avi_useraccount:
controller: "{{ controller }}"
username: "{{ username }}"
password: "{{ password }}"
api_version: "{{ api_version }}"
old_password: "{{ old_password }}"
- name: Basic Controller Config
avi_systemconfiguration:
controller: "{{ controller }}"
username: "{{ username }}"
password: "{{ password }}"
api_version: "{{ api_version }}"
email_configuration:
smtp_type: SMTP_LOCAL_HOST
from_email: "{{ from_email }}"
global_tenant_config:
se_in_provider_context: true
tenant_access_to_provider_se: true
tenant_vrf: false
dns_configuration:
search_domain: ''
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
ntp_configuration:
ntp_servers:
- server:
type: DNS
addr: "{{ ntp_server01 }}"
- server:
type: DNS
addr: "{{ ntp_server02 }}"
default_license_tier: ENTERPRISE_18