diff --git a/.drone.yml b/.drone.yml index a1da8f9..a2c09cc 100644 --- a/.drone.yml +++ b/.drone.yml @@ -15,7 +15,7 @@ steps: - ansible-lint . - name: setup ssh key - image: cytopia/ansible:latest-tools + image: cytopia/ansible:latest-infra commands: - mkdir -p /root/.ssh - echo "$SSH_KEY" > /root/.ssh/id_ed25519 @@ -34,9 +34,10 @@ steps: - master - name: ansible apply - image: cytopia/ansible:latest-tools + image: cytopia/ansible:latest-infra commands: - - ansible-playbook -i inventory/hosts.yml site.yml --private-key /root/.ssh/id_ed25519 + - ssh-add /root/.ssh/id_ed25519 + - ansible-playbook -i inventory/hosts.yml site.yml volumes: - name: ssh_key path: /root/.ssh