diff --git a/playbooks/mpdf.yaml b/playbooks/mpdf.yaml index d83c88f..a30af62 100644 --- a/playbooks/mpdf.yaml +++ b/playbooks/mpdf.yaml @@ -37,11 +37,11 @@ buffer_before_play: "1%" tasks: - - name: Gather information about a specific droplet by name - community.digitalocean.digital_ocean_droplet_info: - oauth_token: "{{ oauth_token }}" - name: "mpdb{{ count }}" - - 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: "mpdb{{ count }}" + - name: Install mpdf on hosts apt: name: mpd state: present