i Try this tasks:

---
- name: "Volumenes sin usar"
 hosts: localhost
 gather_facts: yes
 vars:
   aws_volume_id:
     - vol-xxxxxxxxxxxxxxxx
 tasks:
   - name: "Creando snapshot desde el volumen"
     amazon.aws.ec2_snapshot:
       volume_id: "{{ item }}"
       wait_timeout: 900
       snapshot_tags:
         MarkedForDeletion: true
     register: show_id_snapshot
     with_items: "{{ aws_volume_id }}"

   - name: "mostrando"
     debug:
       msg: var=show_id_snapshot

All debug is here: https://pastebin.pl/view/eb4b1e29

Thanks for the help.


On Thu, Jan 5, 2023 at 12:38 PM Todd Lewis <[email protected]> wrote:

> The register worked fine, but there's a typo in your debug task, which you
> have not shown us.
>
> On 1/5/23 10:30 AM, SysAdmin EM wrote:
>
> I don’t know what I’m doing wrong, I’m desperate.
> any help?
>
> On Thu, Jan 5, 2023 at 12:13 PM SysAdmin EM <[email protected]> wrote:
>
>> ok: [localhost] => {
>>    "msg": "var=snapshotid\""
>> }
>>
>> i think the "register" not work
>>
>
> --
> 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/66aa2a97-3063-8dad-c705-662d1882c210%40gmail.com
> <https://groups.google.com/d/msgid/ansible-project/66aa2a97-3063-8dad-c705-662d1882c210%40gmail.com?utm_medium=email&utm_source=footer>
> .
>

-- 
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/CAGUDtnk0GAaR0LzSaDp-_25LcLFguh5ehowoVroDdGkkt0EZeA%40mail.gmail.com.

Reply via email to