mirror of
https://github.com/Aviortheking/Blog_IMIE.git
synced 2025-06-18 04:39:19 +00:00
gitlab-cy.yml
This commit is contained in:
@ -1,8 +1,6 @@
|
||||
image: ansible/centos7-ansible
|
||||
|
||||
before_script:
|
||||
#- which ssh-agent || ( apt-get update -qq -y && apt-get -q -y -o Dpkg::Use-Pty=0 install openssh-client )
|
||||
|
||||
# Run ssh-agent (inside the build environment)
|
||||
- eval $(ssh-agent -s)
|
||||
|
||||
@ -19,13 +17,12 @@ before_script:
|
||||
|
||||
deploy_to_webserver:
|
||||
stage: deploy
|
||||
|
||||
|
||||
only:
|
||||
- master
|
||||
|
||||
script:
|
||||
#- mkdir /etc/ansible
|
||||
- echo -e "$ANSIBLE_HIFIVE_HOSTS" > /etc/ansible/hosts
|
||||
- ansible-playbook ops/ansible/httpd-centos.yml
|
||||
- ansible-playbook ansible-ci.yml
|
||||
|
||||
when: manual
|
||||
when: manual
|
Reference in New Issue
Block a user