|
@@ -37,7 +37,15 @@ |
|
|
buffer_before_play: "1%" |
|
|
buffer_before_play: "1%" |
|
|
|
|
|
|
|
|
tasks: |
|
|
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: |
|
|
apt: |
|
|
name: mpd |
|
|
name: mpd |
|
|
state: present |
|
|
state: present |
|
|