Call Ansible manually

lektura
Jonas Oberg 2017-06-13 09:10:11 +02:00
parent b8ad6dc1ca
commit 6dc082af78
1 changed files with 3 additions and 2 deletions

View File

@ -6,8 +6,9 @@ pipeline:
deploy:
image: rics3n/drone-ansible
inventory: hosts
playbook: playbook.yml
commands:
- mkdir /root/.ssh && echo "$SSH_KEY" > /root/.ssh/id_rsa && chmod 0600 /root/.ssh/id_rsa
- ansible-playbook playbook.yml -i hosts
when:
branch: master