mirror of
https://github.com/Aviortheking/Blog_IMIE.git
synced 2025-06-07 16:09:53 +00:00
gitlab-cy.yml
This commit is contained in:
parent
96916111b6
commit
3054f96cc8
@ -1,7 +1,7 @@
|
|||||||
image: geerlingguy/docker-debian9-ansible
|
image: jcpowermac/alpine-ansible-ssh
|
||||||
|
|
||||||
before_script:
|
before_script:
|
||||||
- which ssh-agent || ( apt-get update -qq -y && apt-get install openssh-client -qq -y )
|
#- which ssh-agent || ( apt-get update -qq -y && apt-get install openssh-client -qq -y )
|
||||||
|
|
||||||
# Run ssh-agent (inside the build environment)
|
# Run ssh-agent (inside the build environment)
|
||||||
- eval $(ssh-agent -s)
|
- eval $(ssh-agent -s)
|
||||||
@ -25,10 +25,7 @@ deploy_to_webserver:
|
|||||||
|
|
||||||
script:
|
script:
|
||||||
- echo -e "$HIFIVE" > /etc/ansible/hosts
|
- echo -e "$HIFIVE" > /etc/ansible/hosts
|
||||||
- cat /etc/ansible/hosts
|
|
||||||
- ansible-playbook ops/ansible/httpd-centos.yml
|
- ansible-playbook ops/ansible/httpd-centos.yml
|
||||||
- find / -name ansible.cfg
|
|
||||||
- cat /root/ansible.cfg
|
|
||||||
|
|
||||||
when: manual
|
when: manual
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user