From 69f858295a6849d9744b3459207d0c1746624e85 Mon Sep 17 00:00:00 2001 From: s0dy Date: Sat, 17 Nov 2018 22:45:26 +0100 Subject: [PATCH] gitlab-cy.yml --- .gitlab-ci.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 0935d48..c2a8859 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,7 +1,7 @@ image: geerlingguy/docker-debian9-ansible before_script: - - which ssh-agent || ( apt-get update -qq -y && apt-get install -qq openssh-client -y ) + - which ssh-agent || ( apt-get update -qq -y && apt-get install openssh-client -qq -y ) - eval $(ssh-agent -s) - echo "$SSH_PRIVATE_KEY" | tr -d '\r' | ssh-add - > /dev/null - mkdir -p ~/.ssh @@ -17,7 +17,8 @@ deploy_to_webserver: - echo -e "$ANSIBLE_HOSTS" > /etc/ansible/hosts - cat /etc/ansible/hosts - ansible-playbook ops/ansible/httpd-centos.yml - + - find / -name ansible.cfg + - cat /root/ansible.cfg when: manual