The text you print in the debug task is previously stored in a variable?
If that's the case, you can write the variable *stdout_lines *attribute to 
a local file using *lineinfile* module and *delegate_to: localhost*, so 
this is writted locally.

El martes, 24 de noviembre de 2020 a la(s) 16:47:06 UTC-6, 
[email protected] escribió:

> Hello 
>
> Need some assistance to send to a text file a message that appears in 
> debug msg.
> my uri task give me the flow msg 
>  "msg": [
>         "JOB-1",
>         "JOB-2",
>         " JOB- 3 ",
>         " JOB- 4 ",
>         " JOB- 5 ",
>         " JOB- 6 ",
>         " JOB- 7 "
>     ]
> and I need to add task on the playbook to send this msg to specific file 
> like this 
>
> cat jobs_lists.txt 
>
>         JOB-1
>         JOB-2
>         JOB- 3 
>         JOB- 4 
>         JOB- 5 
>         JOB- 6 
>         JOB- 7 
>
> Appreciate your help. 
> Regards 
>  
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/a5a6c191-e5a0-4438-a8b6-edc27466a347n%40googlegroups.com.

Reply via email to