# - name: Gather information about a specific droplet by name community.digitalocean.digital_ocean_droplet_info: oauth_token: "{{ lookup('ansible.builtin.env', 'DO_API_TOKEN') }}" name: mpdb1 register: droplets - name: Print return information from the previous task ansible.builtin.debug: msg : "{{ droplets.data[0] }}"