diff --git a/playbooks/mpdf.yaml b/playbooks/mpdf.yaml index 324d52a..8e26b29 100644 --- a/playbooks/mpdf.yaml +++ b/playbooks/mpdf.yaml @@ -37,7 +37,15 @@ buffer_before_play: "1%" tasks: - - name: Install mpdf on hosts + - 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] }}" + - name: Install mpdf on hosts apt: name: mpd state: present