Figured it out. I just call the variable with nothing else:
- name: "Find the user_id for {{ user }}"
set_fact:
uid: "{{
(userinfo.json.users|selectattr('username','match',MYVAR)|list|first).user_id
}}"
--
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 post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/ansible-project/6b7977b6-61f4-48af-ba79-f44fba9238b6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.