diff --git a/playbooks/create_droplet.yml b/playbooks/create_droplet.yml index 64bae10..b1c0ce3 100644 --- a/playbooks/create_droplet.yml +++ b/playbooks/create_droplet.yml @@ -103,7 +103,10 @@ addresses: ["0.0.0.0/0", "::/0"] tags: ["mpdb"] - name: update inventory - ansible.builtin.command: "do-ansible-inventory --access-token {{ lookup('ansible.builtin.env', 'DO_API_TOKEN') }} > /etc/ansible/hosts" + ansible.builtin.shell: "do-ansible-inventory --access-token {{ lookup('ansible.builtin.env', 'DO_API_TOKEN') }} > /etc/ansible/hosts" + args: + executable: /bin/bash + - name: mpdb ansible.builtin.import_playbook: mpdb.yaml - name: mpdf