#na_ontap_rest_info or na_ontap_rest_cli gives an empty string as an output

1 messages · Page 1 of 1 (latest)

velvet bobcat
#

Running an ansible playbook with username with correct username and password gives an empty string as an output. Any idea what the issue might be?
` tasks:
- name: Run ontap cli command
netapp.ontap.na_ontap_rest_info:
hostname: "{{ hostname }}"
username: "{{ username }}"
password: "{{ password }}"
https: true
validate_certs: false
gather_subset:
- svm/svms

PLAY [Get information] **********************************************************************************************************************

TASK [Gathering Facts] **********************************************************************************************************************
ok: [localhost]

TASK [Run ontap cli command] **********************************************************************************************************************
ok: [localhost]

PLAY RECAP **********************************************************************************************************************
localhost : ok=2 changed=0 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 `

clever wharf
#

This module just captures the data. It will not produce any output by itself.

#

Use register: varname to save the results and the debug module to generate output. There are plenty of Ansible introductions that will explain this in detail.