# ansible 2.2.0 - ios\_facts module

**URL:** <https://forum.ansible.com/t/ansible-2-2-0-ios-facts-module/22409>\
**Category:** Ansible Project\
**Tags:** ubuntu\
**Created:** [August 29, 2016, 9:23am UTC](https://forum.ansible.com/t/ansible-2-2-0-ios-facts-module/22409 "2016-08-29T09:23:41Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rukka\_Pal](https://avatars.discourse-cdn.com/v4/letter/r/b38774/32.png) [@Rukka\_Pal](https://forum.ansible.com/u/Rukka_Pal)\
**Post date:** [August 29, 2016, 9:23am UTC](https://forum.ansible.com/t/ansible-2-2-0-ios-facts-module/22409/1 "2016-08-29T09:23:41Z")

</div>

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!

---

<div class="post-metadata">

**Author:** ![psprygada](https://avatars.discourse-cdn.com/v4/letter/p/898d66/32.png) [@psprygada](https://forum.ansible.com/u/psprygada)\
**Post date:** [August 30, 2016, 2:25am UTC](https://forum.ansible.com/t/ansible-2-2-0-ios-facts-module/22409/2 "2016-08-30T02:25:46Z")

</div>

Hi Rukka,

See sample playbook here: [https://gist.github.com/privateip/f473d9ce25dd699b14c9987264159616](https://gist.github.com/privateip/f473d9ce25dd699b14c9987264159616)

---

<div class="post-metadata">

**Author:** ![Rukka\_Pal](https://avatars.discourse-cdn.com/v4/letter/r/b38774/32.png) [@Rukka\_Pal](https://forum.ansible.com/u/Rukka_Pal)\
**Post date:** [September 1, 2016, 7:51am UTC](https://forum.ansible.com/t/ansible-2-2-0-ios-facts-module/22409/3 "2016-09-01T07:51:14Z")

</div>

Hi Peter,

many thanks for your help, it works now!
