Exactly!  the IOS module is for switches and routers...I was going to point
you to the ASA modules if you were, in fact, working on a firewall but you
already found them!  That is a great idea!  Good luck with that!   I'm
doing similar things for my clients. From initial
provisioning/configuration (generating and applying) to testing and then
compliance reporting.  In a managed services environment it could be very
powerful!

On Wed, Mar 7, 2018 at 11:28 AM, Otto Nix <o77o...@gmail.com> wrote:

> Hi Claudia,
>
> Thanks for responding. I think the target hardware was the problem (I
> should have put that in the original post) , but not sure. It's a Cisco ASA
> 5540 running 9.1(7)23. I just got this working using the asa_command module
> (which I didn't know existed). Is there a difference between Cisco IOS on
> an ASA? I have no idea, I'm the Linux guy, not the Network guy so...
>
> Below is the playbook I used to solve my problem:
> ---
> - hosts: ios_fw
>   any_errors_fatal: True
>   gather_facts: no
>   connection: local
>
>   vars:
>     cli:
>       host: "{{ inventory_hostname }}"
>       username: ans
>       password: XXxxXXxXxX
> #      transport: cli
>   tasks:
>     - asa_command:
>         commands:
>           - show version
>         provider: "{{ cli }}"
>       register: ver
>
>     - debug: var=ver.stdout_lines
>
>
>
> This pretty much gets me what I was looking for although getting to this
> point drove me pretty crazy for the past few days. I'm new to Ansible but
> want to use it heavily in our managed services environment. My particular
> plan is to create reports with the output of this play.
>
>
> On Wednesday, March 7, 2018 at 1:15:39 PM UTC-5, Claudia de Luna wrote:
>>
>> Hi Otto,
>>
>> What version and model are you trying to gather facts from?
>>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "Ansible Project" group.
> To unsubscribe from this topic, visit https://groups.google.com/d/
> topic/ansible-project/lnR8Ff5218o/unsubscribe.
> To unsubscribe from this group and all its topics, 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/c7a69746-9908-450f-b18f-56a81eb4e291%40googlegroups.
> com
> <https://groups.google.com/d/msgid/ansible-project/c7a69746-9908-450f-b18f-56a81eb4e291%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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/CAENRZgZTCdz-3%3DxxQtTvRcUfTjbBQ2yVVCm4DFjjqRsbaZs0fw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to