Playbook for VMware help

Season’s greetings, all.

I’ve created a playbook to generate a report of all VMware guests (vms) which have snapshots:

I’m not sure about your prompt question,
but for the report, try this:

        content: |
          {% for host in ansible_play_hosts %}
          {%     if hostvars[host].snapshot_info.guest_snapshots.snapshots is defined %}
          {{ host }}:
          {{ hostvars[host]['snapshot_info']|default("None", false) }}

          {%     endif %}
          {% endfor -%}

Cheers,

Todd, that worked. I consider it a great Christmas present. Thanks! And, have a great Christmas!

If anyone can help me solve the prompt issue, I’d appreciate that, too.