Steven,

I use tee so I can see the output and pass the full path.

eg.
Stevens-MacBook-Pro:ansible stevenwiliams$ ansible IOL_Routers -i ./hosts
-m raw -a "show run" -u cisco -k *| tee /tmp/filetest*

The issue may be with the directory permissions.

Nathan Brady
Red Hat Consulting
e: nbr...@redhat.com | c: 1.317.344.9305 | t: 1.312.477.4327
https://www.redhat.com


On Wed, Aug 21, 2019 at 3:08 PM Steven Williams <stevenjwilliam...@gmail.com>
wrote:

> Stevens-MacBook-Pro:ansible stevenwiliams$ ansible IOL_Routers -i ./hosts
> -m raw -a "show run" -u cisco -k > filetest
>
> -bash: filetest: Permission denied
>
> Stevens-MacBook-Pro:ansible stevenwiliams$
>
>
> what am I missing here??
>
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "Ansible Development" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to ansible-devel+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/ansible-devel/cf1e8413-3282-4341-bc98-57d176be4d74%40googlegroups.com
> <https://groups.google.com/d/msgid/ansible-devel/cf1e8413-3282-4341-bc98-57d176be4d74%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to ansible-devel+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-devel/CAOBnNMoWdho%3DFsEN-a64XKFX20KEYpNX1rCpCULXb8P-uEt--g%40mail.gmail.com.

Reply via email to