Hello Nancy,
you might start by simply printing your users-variable to see, what is really in there.
You could do that for example with the debug-module [1] like this:
- name: "Print, what is in users"
debug:
msg: "{{ users }}"
You might also want to look up, how the read_csv-plugin actually
works. [2]
In general, I highly recommend using the documentation
frequently. Most of the time, you have quite decent odds of
finding what you need in the examples-sections. Additionally, it
will help you learning and is normally faster than hoping for a
response via email.
Best,
Jan
[1]
https://docs.ansible.com/ansible/latest/collections/ansible/builtin/debug_module.html
[2]
https://docs.ansible.com/ansible/latest/collections/community/general/read_csv_module.html
--
You received this message because you are subscribed to the Google Groups "Ansible Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ansible-deve...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-devel/2e9c5b1c-2a88-4870-9ee5-8d90f0982c81n%40googlegroups.com.