vyos_command module says that paramiko is not installed.

Hello.

I am trying to use VyOS module, included in Ansible 2.2. When I am trying to run simple playbook to set DHCP server, it fails on missing paramiko module. I’ve tried pip install paramiko but it is already installed. Reinstallation doesn’t helped too. What should I do or what am I doing wrong? Thanks for help:

Version of Ansible:
`
ansible 2.2.0.0
config file = /etc/ansible/ansible.cfg
configured module search path = Default w/o overrides

`

Paramiko seems to be installed.
`
presales@PRESALES-ansible:~$ sudo -H pip2.7 install paramiko
Requirement already satisfied (use --upgrade to upgrade): paramiko in /usr/lib/python2.7/dist-packages
presales@PRESALES-ansible:~$ sudo -H pip2 install paramiko
Requirement already satisfied (use --upgrade to upgrade): paramiko in /usr/lib/python2.7/dist-packages
presales@PRESALES-ansible:~$ sudo -H pip install paramiko
Requirement already satisfied (use --upgrade to upgrade): paramiko in /usr/lib/python2.7/dist-packages
presales@PRESALES-ansible:~$

`

I use Ubuntu 16.04.1 LTS

Here is the playbook I am trying to run:

`

Hi,

Thank you very much, this fixed the issue. Now it sucessfully executes commands. You are right, I haven’t seen this in documentation at all, could this be added to it, for others to resolve the issue?

Dňa pondelok, 24. októbra 2016 21:43:10 UTC+2 Barney Sowood napísal(-a):

Where do you add connection: local?

I added it a the top of my playbook underneath hosts: all and it still complains about paramiko not being installed on the vyos host.