Debian Codegraph @

ansible_collections/netapp_eseries/santricity/roles/nar_santricity_common/tasks/build_info.yml

raw symbols SCIP
1 - name: Collect storage system facts
2 uri:
3 url: |-
4 {%- if eseries_prefer_embedded == True -%}
5 {{- eseries_system_api_url | default(eseries_proxy_api_url) | regex_replace('v2/?$', 'utils/about') -}}
6 {%- else -%}
7 {{- eseries_proxy_api_url | default(eseries_system_api_url) | regex_replace('v2/?$', 'utils/about') -}}
8 {%- endif -%}
9 headers:
10 Content-Type: "application/json"
11 Accept: "application/json"
12 validate_certs: false
13 connection: local
14 register: about
15 failed_when: false
16 when: eseries_proxy_api_url is defined or eseries_system_api_url is defined
17 tags: always
18
19 - name: Determine whether SANtricity Web Services REST API is proxy and information
20 set_fact:
21 current_eseries_api_is_proxy: "{{ about['json']['runningAsProxy'] | default(False) }}"
22 tags: always
23
24 - name: Collect Web Services information from either proxy or embedded with a preference for embedded.
25 include_tasks: collect_facts/prefer_embedded.yml
26 when: (current_eseries_api_is_proxy == True and eseries_prefer_embedded == True) or current_eseries_api_is_proxy == False
27 tags: always
28
29 - name: Collect Web Services information from proxy.
30 include_tasks: collect_facts/prefer_proxy.yml
31 when: current_eseries_api_is_proxy == True and current_eseries_api_url is not defined
32 tags: always
33
34 - name: Check whether current_eseries_api_url is defined
35 fail:
36 msg: "Could not determine or discover storage system contact information!"
37 when: current_eseries_api_url is not defined or current_eseries_ssid is not defined
38 tags: always