Try the environment variable ANSIBLE_VERBOSE_TO_STDERR, and redirect in
bash (> or 2>) as necessary. I think there's also a flag to pipe the JSON
into a file.
Alan
github: AlanCoding
On Thu, Oct 3, 2019 at 9:12 AM Alexandru Obretin <
alexandru.obreti...@gmail.com> wrote:
> Thanks for the answer
Thanks for the answer Alan.
A broader context of my scenario is the following:
1. In order to send HTTP requests to my equipment I have to be logged in,
to be authorized.
2. The username and the password are passed as variables inside the
inventory file.
3. Inside the login function in my custo
The call pattern I'd suggest for ansible-inventory would be like
ansible-inventory -i my_inventory.yml --list --export
With the export option, group_vars should show under the group. I don't
understand the rest of your problem about expecting vars from module_utils,
but I hope this gets you close
Hello,
I am developing some custom Ansible modules used for configuring network
TAPs and they basically rely on a HTTP connection. Therefore, I have
designed a httapi plugin module and I want to get the group_vars
information associated to the current host directly from my custom
module_utils