Update .gitlab-ci.yml file

This commit is contained in:
Leo
2026-09-12 05:38:57 +00:00
parent 78db08e953
commit 3fb7ca862b
+1 -3
View File
@@ -26,14 +26,12 @@ tests_job1:
deploy_to_server: deploy_to_server:
stage: deploy stage: deploy
image: cytopia/ansible:latest image: ghcr.io/ansible/creator-ee:v0.22.0
variables: variables:
ANSIBLE_HOST_KEY_CHECKING: "False" ANSIBLE_HOST_KEY_CHECKING: "False"
before_script: before_script:
- eval $(ssh-agent -s)
- echo "$ANSIBLE_PRIVATE_KEY" > ./deploy_key - echo "$ANSIBLE_PRIVATE_KEY" > ./deploy_key
- chmod 600 ./deploy_key - chmod 600 ./deploy_key
- ssh-add ./deploy_key
script: script:
- cd auto-deployment/ - cd auto-deployment/
- ansible-playbook -i inventory.ini A_deploy.yml --private-key=./deploy_key - ansible-playbook -i inventory.ini A_deploy.yml --private-key=./deploy_key