#use na_ontap_rest_cli to run node run command

1 messages · Page 1 of 1 (latest)

ruby shadow
#

I am trying to make "node run -node <node> -command <cmd>" work with rest_cli. 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.