ansible 2.2.0 - ios_facts module

445 views
Skip to first unread message

Rukka Pal

unread,
Aug 29, 2016, 10:24:36 AM8/29/16
to Ansible Project
I am a newbie and would like to use Ansible to automate network operation tasks, right now I am only interested in fact collection. I have been using the "raw" module which is not very flexible, hence I decided to install (from GitHub) ansible 2.2.0 to try the "ios_facts" module. First I was using paramiko, but it failed to open SFTP connection. Then I tried default ansible config, but it was complaining about SSH ("SSH Error: data could not be sent to the remote host. Make sure this host can be reached over ssh") so I changed "scp_if_ssh" to true. Now it says ""failed to transfer file to Line has invalid autocommand \"/bin/sh -c ( umask 77 && mkdir -p \"\"/ios_facts.py:\n\nPrivilege denied.\n" and the command won't run.

What am I missing here? Could someone provide an example ad-hoc command or an example playbook?

Environment: 3.13.0-93-generic Ubuntu 14, Perl 5.18.2-2ubuntu1.1

Thanks in advance!

Peter Sprygada

unread,
Aug 29, 2016, 10:26:08 PM8/29/16
to ansible...@googlegroups.com

--
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+unsubscribe@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/1cee5cad-6ce4-4dfe-b99b-73ebb1a87e6f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Rukka Pal

unread,
Sep 1, 2016, 11:55:00 AM9/1/16
to Ansible Project
Hi Peter,

many thanks for your help, it works now!


On Tuesday, August 30, 2016 at 4:26:08 AM UTC+2, Peter Sprygada wrote:
On Mon, Aug 29, 2016 at 5:23 AM, Rukka Pal <reg...@gmail.com> wrote:
I am a newbie and would like to use Ansible to automate network operation tasks, right now I am only interested in fact collection. I have been using the "raw" module which is not very flexible, hence I decided to install (from GitHub) ansible 2.2.0 to try the "ios_facts" module. First I was using paramiko, but it failed to open SFTP connection. Then I tried default ansible config, but it was complaining about SSH ("SSH Error: data could not be sent to the remote host. Make sure this host can be reached over ssh") so I changed "scp_if_ssh" to true. Now it says ""failed to transfer file to Line has invalid autocommand \"/bin/sh -c ( umask 77 && mkdir -p \"\"/ios_facts.py:\n\nPrivilege denied.\n" and the command won't run.

What am I missing here? Could someone provide an example ad-hoc command or an example playbook?

Environment: 3.13.0-93-generic Ubuntu 14, Perl 5.18.2-2ubuntu1.1

Thanks in advance!

--
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-proje...@googlegroups.com.
To post to this group, send email to ansible...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages