Управление роутером в GNS3 с Ansible в Windows

В Windows запущен GNS3 с роутером, доступным по telnet (ip 192.168.2.2), установлена Ubuntu в WSL. Как управлять роутером через Ansible? Ставим Ansible sudo apt install ansible Создаем файлы в домашнем каталоге myhosts [cisco-routers] 192.168.2.2 ansible.cfg [defaults] inventory = ./myhosts gathering = explicit telnet_command_show_ver.yml (логин без ввода имени пользователя) --- - name: Run show command on routers hosts: cisco-routers tasks: - name: run show commands telnet: login_prompt: "Password: " password: cisco prompts: - "[>#]" command: - terminal length 0 - show version Выполняем...

April 3, 2020