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 }}”