Skip to content

Commit

Permalink
Merge pull request #31 from avinetworks/AV-130478
Browse files Browse the repository at this point in the history
fetch version info by doing authentication
  • Loading branch information
sabandi authored Nov 17, 2021
2 parents 636ffb2 + 392d3cc commit ac749b1
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions tasks/initial_data.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,16 @@
- se_master_ctl_ip
- se_master_ctl_username
- se_master_ctl_password
- se_tenant

- name: Avi SE | Initial Data | Get Controller information
uri:
url: "https://{{ se_master_ctl_ip }}/api/initial-data"
validate_certs: no
avi_api_session:
controller: "{{ se_master_ctl_ip }}"
username: "{{ se_master_ctl_username }}"
password: "{{ se_master_ctl_password }}"
tenant: "{{ se_tenant }}"
http_method: get
path: "initial-data"
register: initial_data
delegate_to: localhost

Expand All @@ -26,8 +31,8 @@

- name: Avi SE | Initial Data | Set Controller version information
set_fact:
ctl_build: "{{ initial_data.json.version.build }}"
se_master_ctl_version: "{{ initial_data.json.version.Version }}"
ctl_build: "{{ initial_data.obj.version.build }}"
se_master_ctl_version: "{{ initial_data.obj.version.Version }}"
when: initial_data

- name: Avi SE | Initial Data | Set Controller Cluster UUID information
Expand Down

0 comments on commit ac749b1

Please sign in to comment.