On Sun, 19 Dec 2021 at 00:39, [email protected] <[email protected]> wrote:

> Hi
>
> below playbook only export 1 ec2 tags
>

That is ambiguous.
Please provide a better description.
Does it mean tags for one instance?  Or a single tag for multiple instances.
Or something else even.

Best to just paste real playbook output.

Also does this wildcard pattern for the resource parameter actually work?
The docs (
https://docs.ansible.com/ansible/latest/collections/amazon/aws/ec2_tag_info_module.html#parameter-resource)
seem to suggest it requires an actual full id.
Is this maybe the source of your problem?




> Any please suggestions how can i modify to export all
>
>
> ---
>   - name: ec2 info
>     hosts: local
>     connection: local
>     tasks:
>       - name: EC2 info
>         amazon.aws.ec2_tag_info:
>           region: us-east-1
>           validate_certs: no
>           resource: i-*
>         register: instance_tags
>       - name: Displaying output
>         ansible.builtin.debug:
>           var: instance_tags
>
> --
> 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/4c60d403-644b-439d-abc2-0399853c57can%40googlegroups.com
> <https://groups.google.com/d/msgid/ansible-project/4c60d403-644b-439d-abc2-0399853c57can%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>
-- 
Sent from a mobile device - please excuse the brevity, spelling and
punctuation.

-- 
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/CAL8fbwM%3DoDKX9mFYydwmN%3Dafb6sEGKLA_eutxFtjEAkrxwB4uQ%40mail.gmail.com.

Reply via email to