0

我正在尝试通过NetApp 8.3 ONTAP 上的na_ontap_command ansible 模块运行命令:

- na_ontap_command:
    command: ['version']
    hostname: "{{ corp2 }}"
    username: "{{ netapp_username }}"
    password: "{{ netapp_password }}"
    register: snaplist

- name: print the op
    debug:
    var: snaplist  

当我打印输出时,我收到以下消息。我期待一个版本号。

"msg": [
    {
        "snaplist": [
            "<results xmlns=\"http://www.netapp.com/filer/admin\" status=\"passed\"><cli-output/><cli-result-value>0</cli-result-value></results>"
4

0 回答 0