mirror of
https://github.com/Aviortheking/Blog_IMIE.git
synced 2025-04-23 11:22:12 +00:00
gitlab-cy.yml
This commit is contained in:
parent
a070b14fdd
commit
44e33e2660
@ -1,7 +1,7 @@
|
|||||||
image: geerlingguy/docker-debian9-ansible
|
image: geerlingguy/docker-debian9-ansible
|
||||||
|
|
||||||
before_script:
|
before_script:
|
||||||
- which ssh-agent || ( apt-get update -y && apt-get install openssh-client -y )
|
- which ssh-agent || ( apt-get update -qq -y && apt-get install -qq openssh-client -y )
|
||||||
- eval $(ssh-agent -s)
|
- eval $(ssh-agent -s)
|
||||||
- echo "$SSH_PRIVATE_KEY" | tr -d '\r' | ssh-add - > /dev/null
|
- echo "$SSH_PRIVATE_KEY" | tr -d '\r' | ssh-add - > /dev/null
|
||||||
- mkdir -p ~/.ssh
|
- mkdir -p ~/.ssh
|
||||||
@ -14,7 +14,6 @@ deploy_to_webserver:
|
|||||||
- master
|
- master
|
||||||
|
|
||||||
script:
|
script:
|
||||||
- mkdir /etc/ansible
|
|
||||||
- echo -e "$ANSIBLE_HOSTS" > /etc/ansible/hosts
|
- echo -e "$ANSIBLE_HOSTS" > /etc/ansible/hosts
|
||||||
- cat /etc/ansible/hosts
|
- cat /etc/ansible/hosts
|
||||||
- ansible-playbook ops/ansible/httpd-centos.yml
|
- ansible-playbook ops/ansible/httpd-centos.yml
|
||||||
|
Loading…
x
Reference in New Issue
Block a user