We want to use the network_cli connector with ssh to launch commands to the console directly, without using httpapi.
Is this possible?
My first tests seems to demonstrate that it is not possible:
Exemples:
tasks:
- name: run show version on remote devices
ansible.netcommon.cli_command:
command: diagnose hardware info
with inventory vars:
ansible_network_os: fortinet.fortimanager
ansible_connection: ansible.netcommon.network_cli
results:
fatal: [MYDEVICE]: FAILED! => {
"msg": "network os fortinet.fortimanager.fortimanager is not supported"
}
We want to use the network_cli connector with ssh to launch commands to the console directly, without using httpapi.
Is this possible?
My first tests seems to demonstrate that it is not possible:
Exemples:
with inventory vars:
results:
So is there a solution?