Easiest would be to write a fact module, and return a JSON response that
contains the dictionary "ansible_facts".  Register does not need to be used
with these modules.

Take a look at any module in the tree ending in "_facts" for an example,
the setup module is a special case of those, that is called automatically.

--Michael

On Mon, Sep 8, 2014 at 2:37 PM, Tiglath <[email protected]> wrote:

>
> I know that
>
>      register: var
>
> Allows to reference  var.stdout, but...
>
> Say I call a python script that prints to stdout more than one argument as
> in a tuple : (arg1, arg2, arg3)
>
> How can I get that into individual variables in Ansible?
>
> Thanks
>
>
>
>
>
> --
> 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 [email protected].
> To post to this group, send email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/ansible-project/09e3b12b-acda-4a70-8c53-61132cc298db%40googlegroups.com
> <https://groups.google.com/d/msgid/ansible-project/09e3b12b-acda-4a70-8c53-61132cc298db%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 [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/CA%2BnsWgw9ssbxx9fBUyn6gfLnUEoXuTdB%2BfdbkJbup5zJ8qmp7w%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to