Hello,

I'm new user of ansible and for the first projet, I would to get current 
config of aruba (2930F) switches (for backup).

I read these documentations :

https://docs.ansible.com/ansible/devel/network/getting_started/first_playbook.html
https://docs.ansible.com/ansible/2.4/aruba_config_module.html

For the debug, I test with this commande :

ansible all -i swautc02, -c network_cli -u manager -m aruba_config -e 
ansible_network_os=aruba -vvvv --private-key=bkpkey.key

but return :

ansible 2.5.0 (stable-2.5 955ef020ef) last updated 2018/04/12 16:44:14 (GMT 
> +200)
>   config file = /opt/ansible/ansible.cfg
>   configured module search path = [u'/opt/ansible/library']
>   ansible python module location = /opt/ansible/lib/ansible
>   executable location = /opt/ansible/bin/ansible
>   python version = 2.7.14 (default, Oct 31 2017, 21:12:13) [GCC 6.4.0]
> Using /opt/ansible/ansible.cfg as config file
> setting up inventory plugins
> Parsed swautc02, inventory source with host_list plugin
> Loading callback plugin minimal of type stdout, v2.0 from 
> /opt/ansible/lib/ansible/plugins/callback/minimal.pyc
> META: ran handlers
> <swautc02> attempting to start connection
> <swautc02> using connection plugin network_cli
> <swautc02> local domain socket does not exist, starting it
> <swautc02> control socket path is /home/mchavigny/.ansible/pc/632ab3f093
> <swautc02>
> The full traceback is:
> Traceback (most recent call last):
>   File "/usr/bin/ansible-connection", line 70, in start
>     self.connection._connect()
>   File "/opt/ansible/lib/ansible/plugins/connection/network_cli.py", line 
> 316, in _connect
>     self.receive()
>   File "/opt/ansible/lib/ansible/plugins/connection/network_cli.py", line 
> 391, in receive
>     data = self._ssh_shell.recv(256)
>   File "/usr/lib/python2.7/site-packages/paramiko/channel.py", line 685, 
> in recv
>     raise socket.timeout()
> timeout
> swautc02 | FAILED! => {
>     "msg": ""
> }


I check log on the aruba switch and I see :

I 04/13/18 12:55:00 03363 auth: User 'manager' logged out of SSH  session 
> from
>             172.20.0.25
> I 04/13/18 12:54:59 00179 mgr: SME SSH from 172.20.0.25 - MANAGER Mode
> I 04/13/18 12:54:49 03344 ssh: User manager : SSH session established with
>             public-key authentication


Can you help me for this problem ?

Best regards,

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to ansible-project+unsubscr...@googlegroups.com.
To post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/150a3122-c024-411c-840b-db2185f44367%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to