aser_ Posted May 16 Приветствую, Уважаемые! Подскажите, кому-нибудь удалось победить такую связку? Хотя бы show running-config через ansible.netcommon.telnet. Прошивки железок 3.0.0.45 (.35), ansible 2.10.17. Вставить ник Quote Ответить с цитированием Share this post Link to post Share on other sites More sharing options...
aser_ Posted June 18 (edited) Расковырял через боль и expect в итоге. Как минимум, работает в ручном запуске playbook-а. --- - hosts: allied_sw gather_facts: false connection: local serial: 1 vars: full_path: /opt/configs/temp tasks: - name: show run ignore_errors: true expect: command: ssh "{{ inventory_hostname }}" echo: yes responses: User Name: "{{ ansible_user }}" Password: "{{ ansible_password }}" (.*)#(.*): - "terminal datadump\n" - "show running-config\n" - "exit\n" timeout: 120 register: conf - name: write conf in file copy: content={{ conf.stdout }} dest={{ full_path }}/{{ inventory_hostname }}.cfg Edited June 18 by aser_ Вставить ник Quote Ответить с цитированием Share this post Link to post Share on other sites More sharing options...