#Trying to interpret fields for netapp.ontap.na_ontap_rest_info:

1 messages · Page 1 of 1 (latest)

late sigil
#

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.
late sigil
#

Basically one of the fields cluster/nodes is givine me issues in ansible I am not sure how to escape it so it will work.

buoyant jackal