diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index fe5cf4f18646668b1b0c7f0656b44140f61a221b..0bb1543441fd1037f160b3d8c3efa19a78680797 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -11,4 +11,11 @@ test-centos7: - yum install -y httpd httpd-devel - cd ippisite - pip3 install -r requirements.txt - - python3 manage.py test \ No newline at end of file + - python3 manage.py test + deploy-webserver: + stage: deploy + tags: + - ansible + script: + - cd ansible + - ansible-playbook -v -i ./hosts deploy.yaml --ask-become-pass --extra-vars "deploy_user_name=ippidb repo_api_token=JZS-4cH7bWkFkHa2rAVf" \ No newline at end of file