found it
---
- name: User info
hosts: local
connection: local
tasks:
- name: gather user info
community.aws.iam_user_info:
name: "admin"
register: result
- name: User info
ansible.builtin.debug:
msg: "{{ result['iam_users'] }}"
On Sunday, November 8, 2020 at 8:30:17 PM UTC-8 [email protected] wrote:
> Hi,
>
> How can i do a debug & see all users ? Any suggestions Please ?
>
>
> https://github.com/ansible-collections/community.aws/blob/main/docs/community.aws.iam_user_info_module.rst
>
>
> # Note: These examples do not set authentication details, see the AWS
> Guide for details. # Gather facts about "test" user. - name: Get IAM user
> facts community.aws.iam_user_info: name: "test"
>
> ==
> i tried
> ---
> - name: User info
> hosts: local
> connection: local
>
> tasks:
> - name: gather user info
> community.aws.iam_user_info:
> name: "admin"
> register: result
> ==
>
> i would like to get all user info not user called admin only...
>
>
> Thanks
>
>
>
--
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/54e830f9-8ea7-48cc-a096-474735511988n%40googlegroups.com.