Привет всем. Пытаюсь использовать ansible для настройки коммутаторов.
Содержимое файла hosts:
[eltex]
192.168.90.33
Создал playbook test.yml
---.
- name: Run show commands on routers
hosts: eltex
tasks:
- name: run sh ip int br
cli_command:
command: show version
При запуске ansible-playbook test.yml -vvv -u user
SSH password:
/etc/ansible/hosts did not meet host_list requirements, check plugin documentation if this is unexpected
/etc/ansible/hosts did not meet sсript requirements, check plugin documentation if this is unexpected
Parsed /etc/ansible/hosts inventory source with ini plugin
PLAYBOOK: test.yml **************************************************************************************************************************************************************************************************************************
1 plays in test.yml
PLAY [Run show commands on routers] *********************************************************************************************************************************************************************************************************
TASK [Gathering Facts] **********************************************************************************************************************************************************************************************************************
task path: /etc/ansible/group_vars/test.yml:3
<192.168.90.33> ESTABLISH SSH CONNECTION FOR USER: user
<192.168.90.33> SSH: EXEC sshpass -d11 ssh -o StrictHostKeyChecking=no -o User=user -o ConnectTimeout=10 192.168.90.33 '/bin/sh -c '«'»'echo ~user && sleep 0'«'»"
И зависает. При этом устройство пингуется, на него по ssh я захожу.
Впервые использую ansible, прошу помощи!)