Skip to content
Snippets Groups Projects
Commit 21c1a2a0 authored by Bryan BRANCOTTE's avatar Bryan BRANCOTTE
Browse files

ansible have been removed

parent 0e0a6374
No related branches found
No related tags found
1 merge request!52Bring all changes from dev into master
...@@ -74,40 +74,6 @@ pages: ...@@ -74,40 +74,6 @@ pages:
- public - public
only: only:
- master - master
deploy-webserver:
stage: deploy
image: centos:centos7
before_script:
# install ssh-agent
- 'which ssh-agent || ( yum -y install openssh-clients )'
# run ssh-agent
- eval $(ssh-agent -s)
# add ssh key stored in SSH_PRIVATE_KEY variable to the agent store
- ssh-add <(echo "$SSH_PRIVATE_KEY")
# disable host key checking (NOTE: makes you susceptible to man-in-the-middle attacks)
# WARNING: use only in docker container, if you use it with shell you will overwrite your user's ssh config
- mkdir -p ~/.ssh
- echo -e "Host *\n\tStrictHostKeyChecking no\n\n" > ~/.ssh/config
script:
- yum install -y epel-release wget
- yum install -y gcc
- yum install -y https://repo.ius.io/ius-release-el7.rpm
- yum update -y
- yum install -y python36u python36u-libs python36u-devel python36u-pip openssl-devel libffi-devel
- python3.6 -m pip install --upgrade pip
- export PYTHONIOENCODING=utf8
- export LANG=en_US.UTF-8
- export LANGUAGE=en_US:en
- export LC_ALL=en_US.UTF-8
- python3.6 -m pip install ansible
- python3.6 -m pip install virtualenv
- cd ansible
- whoami
- ansible-playbook -vvv -i ./hosts_deploy deploy.yaml --extra-vars "@params-server.json"
only:
- master
.build: .build:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment