Hi there,

Try doing,

- name: Set fact
  set_fact:
    my_date_as_fact: my_date

Thanks
-AliJ

On Thu, Dec 1, 2016 at 2:17 PM, <[email protected]> wrote:

> For example:
>
> - name: Get date
>   command curl http://some-url
>   register: my_date
>
>
> - name: Set fact
>   set_fact:
>   my_date_as_fact: my_date
>
>
> - name: Gather facts
>   setup:
>   register: {{ ansible_facts }}
>
>
> - name: Print facts
>   debug: msg={{ ansible_facts }}
>
>
>
> "my_date_as_fact" is not included in the output.
>
> --
> 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/492f1ad9-64f5-4e3e-b63b-ebca21fad90f%40googlegroups.
> com
> <https://groups.google.com/d/msgid/ansible-project/492f1ad9-64f5-4e3e-b63b-ebca21fad90f%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/CAF%2BYgi4BY%3D6zL7LMjB%3D4tLOSGShZMuY5CmHsC%3DE6CUFXhpW9iA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to