newbie to ansible

On Tuesday, 17 March 2020 10:30:30 UTC+5:30, mahesh g o wrote:
>
> i have created the list using set_fact  and i want use this list in 
> another playbook.
> i have stored the value in the ouput.
> how do i use it in another playbook??
>
> tasks:
>
>     - name: Initialize an empty list for our strings
>
>       set_fact:
>
>         test: []
>
>     - name: second
>
>       set_fact:
>
>         my_list: "test1"
>
>     - name: append
>
>       set_fact:
>
>         test: "{{ test + [my_list] }}"
>
>       register: output
>
>     - debug: msg="{{ 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 ansible-project+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/46b6eee1-e112-44a4-a027-8fd2da7f3e85%40googlegroups.com.

Reply via email to