-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathbootstrap.yml
More file actions
30 lines (28 loc) · 993 Bytes
/
Copy pathbootstrap.yml
File metadata and controls
30 lines (28 loc) · 993 Bytes
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
---
- name: "Initial bootstrap of Controller"
hosts: "localhost"
connection: "local"
vars_files:
- '{{ "site_" + deployment_site + ".yml" }}'
tasks:
- name: "Check for Initial Setup"
ansible.builtin.uri:
url: '{{ "https://" + avi_credentials.controller + "/api/initial-data?include-name" }}'
method: "get"
status_code: 200
timeout: 10
validate_certs: "no"
register: avi_initial_data
- name: "Bootstrap Controller"
vmware.alb.avi_api_session:
avi_credentials:
controller: "{{ avi_credentials.controller }}"
username: "admin"
password: "{{ avi_default_password }}"
api_version: "{{ avi_credentials.api_version }}"
http_method: "put"
path: "useraccount"
data:
old_password: "{{ avi_default_password }}"
password: "{{ avi_admin_password }}"
when: avi_initial_data.json.user_initial_setup