#/bin/sh" is not a recognized command

1 messages · Page 1 of 1 (latest)

sonic iron
#

Hi everybody,

I'm trying to connect from a Linux machine to a test NetApp SVM via SSH, because the snapshot_auto_delete parameter is not supported via REST API.

Now, I'm getting the following error and I'm not sure how to fix this issue:

<10.2.145.5> (255, b'\r\r\nLast login time: 6/16/2023 17:31:29\r\r\n\x07\r\nError: "/bin/sh" is not a recognized command\r\n\r\n', b'')
fatal: [10.2.145.5]: UNREACHABLE! => {
"changed": false,
"msg": "Failed to connect to the host via ssh: ",
"unreachable": true
}

The playbook looks like this:


  • hosts: test-svm
    gather_facts: false
    vars:
    ansible_python_interpreter: /bin/python3
    login:
    hostname: "{{ netapp_hostname }}"
    username: "{{ netapp_username }}"
    password: "{{ netapp_password }}"
    validate_certs: false
    tasks:
    • name: Modify volume with snapshot auto delete options
      netapp.ontap.na_ontap_volume:
      state: absent
      name: ansible13
      snapshot_auto_delete:
      state: "on"
      commitment: try
      trigger: snap_reserve
      defer_delete: user_created
      target_free_space: 5
      delete_order: oldest_first
      aggregate_name: "{{ netapp_aggregate_name }}"
      vserver: "{{ netapp_vserver }}"
      hostname: "{{ netapp_hostname }}"
      username: "{{ netapp_username }}"
      password: "{{ netapp_password }}"
      https: False
      use_rest: never

Any idea?