TP-Link T2600G-52TS and Ansible RAW

This thread has been locked for further replies. You can start a new thread to share your ideas or ask questions.

TP-Link T2600G-52TS and Ansible RAW

This thread has been locked for further replies. You can start a new thread to share your ideas or ask questions.
TP-Link T2600G-52TS and Ansible RAW
TP-Link T2600G-52TS and Ansible RAW
2020-11-19 15:41:25
Hardware Version: V3
Firmware Version: v3

Hi, I want to execute Ansible commands using ssh raw, but I get a bug

 

- fatal: [tp-link001]: UNREACHABLE! => {"changed": false, "msg": "Failed to connect to the host via ssh:", "unreachable": true}

 

Here's an example of my playbook:

- hosts: tp-link-test

   gather_facts: false

   connection: local

 

  tasks:

  - name: Tp-Link raw

    raw: history

 

this is an example of my hosts:

 

[tp-link-test]

tp-link001 ansible_host = 192.168.0.10

[tp-link-test: vars]

ansible_connection = ssh

ansible_user = admin

 

Previously, I configured authorization using the ssh key and created a config ssh

 

# Some kind of ssh config file

 Host "192.168.0. *"

user admin

Ciphers aes256-cbc

HostKeyAlgorithms = + ssh-dss

 

 

  0      
  0      
#1
Options

Information

Helpful: 0

Views: 565

Replies: 0

Related Articles