Add ssh key to travis
This commit is contained in:
parent
434e89888a
commit
dbc7093796
|
@ -22,4 +22,9 @@ install:
|
|||
- if [ "$ANSIBLE_VERSION" = "latest" ]; then pip install ansible-lint; fi
|
||||
|
||||
script:
|
||||
- eval "$(ssh-agent -s)" #start the ssh agent
|
||||
- openssl aes-256-cbc -K $encrypted_ac3b881c48a4_key -iv $encrypted_ac3b881c48a4_iv -in deploy-user.enc -out deploy-user -d
|
||||
- chmod 600 deploy-user # this key should have push access
|
||||
- ssh-add deploy-user
|
||||
- export ANSIBLE_HOST_KEY_CHECKING=False
|
||||
- ansible-playbook -i ansible/inventory ansible/playbooks/kanthaus-online/deploy.playbook.yml -v
|
||||
|
|
BIN
deploy-user.enc
Normal file
BIN
deploy-user.enc
Normal file
Binary file not shown.
Loading…
Reference in a new issue