ansible ssh to json_query response values in loop
问题 Team, I have response from json_query which is a dict key:value and i would like to iterate over all values and run ssh command for each value Below gets me list of all nodes - name: "Fetch all nodes from clusters using K8s facts" k8s_facts: kubeconfig: $WORKSPACE kind: Node verify_ssl: no register: node_list - debug: var: node_list | json_query(query) vars: query: 'resources[].{node_name: metadata.name, nodeType: metadata.labels.nodeType}' TASK [3_validations_on_ssh : debug] ok: [target1] =>