I'm trying to run a command through na_ontap_command
ansible module on NetApp 8.3 ONTAP:
- na_ontap_command:
command: ['version']
hostname: "{{ corp2 }}"
username: "{{ netapp_username }}"
password: "{{ netapp_password }}"
register: snaplist
- name: print the op
debug:
var: snaplist
And I'm getting below message when I print the output. I'm expecting a version number.
"msg": [
{
"snaplist": [
"<results xmlns=\"http://www.netapp.com/filer/admin\" status=\"passed\"><cli-output/><cli-result-value>0</cli-result-value></results>"