Remove deploy_hosts
This commit is contained in:
parent
770ace2f5d
commit
b5b59c5baf
1 changed files with 5 additions and 2 deletions
|
|
@ -97,10 +97,13 @@ deploy:
|
|||
- git clone https://gitlab-ci-token:${CI_JOB_TOKEN}@git.fudiggity.nl/sonny/ansible-playbooks.git deployment
|
||||
- mkdir /root/.ssh
|
||||
- echo "192.168.178.63 ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAILbtcdgJBhVCKsO88cV19EYefDTopdYejEQCp1pYr1Ga" > /root/.ssh/known_hosts
|
||||
- echo "$DEPLOY_HOST" > deployment/hosts.yml
|
||||
- echo "$DEPLOY_KEY" > deployment/deploy_key && chmod 0600 deployment/deploy_key
|
||||
script:
|
||||
- ansible-playbook deployment/playbook.yml --inventory deployment/hosts.yml --limit newsreader --user ansible --private-key deployment/deploy_key
|
||||
- ansible-playbook deployment/playbook.yml \
|
||||
--inventory deployment/apps.yml \
|
||||
--limit newsreader \
|
||||
--user ansible \
|
||||
--private-key deployment/deploy_key
|
||||
when: manual
|
||||
only:
|
||||
- development
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue