On Fri, 13 Nov 2020 at 16:48, [email protected] <[email protected]> wrote:
>> >> >> > - name: Set User Email fact
>> >> >> > set_fact:
>> >> >> > user_list: "{{ user_find.json.result | json_query('result[].mail') |
>> >> >> > list | to_nice_yaml }}"
Try adding a pipe expression to the query, and leave out the
'list|to_nice_yaml':
set_fact:
user_list: "{{ user_find.json.result | json_query('result[].mail[]') }}"
Dick
--
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/CAL8fbwM7PnynvZyCCjN2-LLXmOJyevVUgwyBH_qgddbjfEUu1g%40mail.gmail.com.