name: Get MSO version from MSO
cisco.mso.mso_version:
state: query
The above task does not work and gives error.
ERROR:
fatal: [test]: FAILED! => {"ansible_facts": {"discovered_interpreter_python": "/usr/bin/python"}, "changed": false, "current": {}, "msg": "Unable to parse error output as JSON. Raw error message: 'NoneType' object is not subscriptable"}
But using these below parameters in above task works.
host: "{{mso_hostname}}"
username: "{{mso_user}}"
password: "{{mso_ssh_pass}}"
validate_certs: false
Example:
name: Get MSO version from MSO
cisco.mso.mso_version:
host: "{{ansible_host}}"
username: "{{ansible_user}}"
password: "{{ansible_ssh_pass}}"
validate_certs: false
state: query
tasks:
The above task does not work and gives error. ERROR: fatal: [test]: FAILED! => {"ansible_facts": {"discovered_interpreter_python": "/usr/bin/python"}, "changed": false, "current": {}, "msg": "Unable to parse error output as JSON. Raw error message: 'NoneType' object is not subscriptable"}
But using these below parameters in above task works. host: "{{mso_hostname}}" username: "{{mso_user}}" password: "{{mso_ssh_pass}}" validate_certs: false
Example:
0000