Custom module for gathering facts for the rescue!
http://docs.ansible.com/ansible/developing_modules.html#module-provided-facts
http://blog.toast38coza.me/custom-ansible-module-hello-world/
http://mcsrainbow.github.io/articles/create-an-ansible-module-and-then-use-module-provided-facts.html

2016. január 29., péntek 18:30:13 UTC+1 időpontban PixelDrift.NET Sam a 
következőt írta:
>
> To add to that, I understand I can use something similar to the following 
> to access a single value:
>
> ---
>
> - hosts: all
>
>  tasks:
>
>    - name: Export environment variable
>
>      shell: /usr/local/bin/blackbox && env | grep ^ANIMAL
>
>      register: output
>
>
> But the real scenario is that I may have 5-10 environment variables 
> generated from blackbox and I am looking for a structured way to access 
> them.
>
>
> Thanks again.
>
>
>

-- 
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/cb6296b6-0073-46e9-94a8-2a93548d9732%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to