So I’m trying to run a playbook to get my NetApp cluster version. I can SSH directly to the machine(s) I’m trying to test against in the host file, but ansible just won’t connect. I’m running this playbook through AWX. The credentials have been verified multiple times.
It’s always some simple solution, but I’m sure one of the many experts here can help!
Ansible 2.16
NetApp Collection 22.11.0
> ---
> - name: Get NetApp cluster version
> hosts: all
> gather_facts: no
> collections:
> - netapp.ontap
> vars:
> netapp_host: 'single'
> netapp_username: "{{ netapp_username }}"
> netapp_password: "{{ netapp_password }}"
> tasks:
> - name: Get cluster version
> netapp.ontap.na_ontap_rest_info:
> command: ['version']
> hostname: "{{ netapp_host }}"
> username: "{{ netapp_username }}"
> password: "{{ netapp_password }}"
> https: true
> validate_certs: false
> register: result
>
> - name: Display cluster version
> debug:
> var: result
> ...
The error:
fatal: [IP HERE]: UNREACHABLE! => {“changed”: false, “msg”: “Failed to connect to the host via ssh: Warning: Permanently added ‘IP HERE’ (ECDSA) to the list of known hosts.”, “unreachable”: true}