I ran a task to pull the information for the cluster_node_info
- name: Get Info for Cluster Node
netapp.ontap.na_ontap_rest_info:
gather_subset:
- cluster_node_info
#desired_attributes: name
hostname: "{{ hostname }}"
username: "{{ username }}"
password: "{{ password }}"
https: true
validate_certs: false
register: cluster_info
in powershell I attempted to ferret out the actual path to the variables and got this from above.
I tried to drill down a path to the node names and after several hours I cannot figure out how to get a path to the value I need
- name: Autosupport Config
netapp.ontap.na_ontap_autosupport:
state: present
node_name: "{{ 'cluster_info.ontap_info.cluster/nodes.records.name()' | first }}"
I went from the path I could derive from ps but I cannot find a way to look up the actual fields I need to drill down.