Hi,
there are multiple solutions, even if there's no perfect one that
works out of the box:
1. Use `debug: msg="{{ result.stdout_lines }}"`. Not perfect, but
a lot better to read than `debug: msg="{{ result.stdout }}"`.
2. Check out the many callback plugins that exist:
https://docs.ansible.com/ansible/latest/collections/index_callback.html
Maybe one of them supports this? If not, you could write your own.
(I would try
https://docs.ansible.com/ansible/latest/collections/community/general/diy_callback.html
- it seems to be very configurable, maybe it can do this?)
3. You could write an action plugin similar to `debug` that prints the
given parameter without any quoting.
(If someone wants to contribute something like that to
community.general, I'm happy to review it.)
Cheers,
Felix
On Sat, 9 Jul 2022 12:20:57 +0200
"'Nicolas Grilly' via Ansible Project" <[email protected]> wrote:
> On Fri, Jul 8, 2022 at 6:03 PM Zhendong Zhao <[email protected]> wrote:
>
> > I met the same issue... It's year 2022 already, did you get any
> > solution? thanks.
>
> Nope, no solution.
>
--
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/20220709123403.6f96ed02%40rovaniemi.