I am trying to make "node run -node <node> -command <cmd>" work with rest_cli in ansible. However, it seems that it's not supported.
- name: test node run
na_ontap_rest_cli:
<<: *login
use_rest: always
verb: "POST"
command: "node/run"
body:
node: "{{ item }}"
command: ['date']
loop: "{{ svm_nodes }}"
tags:
- node_run
- svm
output:
TASK [test node run] ****************************************************************************
failed: [localhost] (item=ancfs01n01a) => {"ansible_loop_var": "item", "changed": false, "item": "ancfs01n01a", "msg": "Error: {'message': 'The \"run\" command is not supported from REST.', 'code': '12451842'}"}
Is there anyway to pass "node run" command through ansible? Not through na_ontap_command, which NetApp announces it will be EOL'd after going to REST.
In REST, is there a way to send "node run" cmd through private rest cli?
thanks,
John