Commit 859875d5 authored by Jérémy KRAEMER's avatar Jérémy KRAEMER

Update .gitlab-ci.yml

parent f8d482d0
image: debian:8
image: williamyeh/ansible:debian8
before_script:
......@@ -10,7 +10,7 @@ before_script:
- eval $(ssh-agent -s)
# Add the SSH key stored in SSH_PRIVATE_KEY variable to the agent store
- ssh-add <(echo "$SSH_PRIVATE_KEY")
# - ssh-add <(echo "$SSH_PRIVATE_KEY")
# For Docker builds disable host key checking. Be aware that by adding that
# you are suspectible to man-in-the-middle attacks.
......@@ -25,7 +25,9 @@ before_script:
# - '[[ -f /.dockerenv ]] && echo "$SSH_SERVER_HOSTKEYS" > ~/.ssh/known_hosts'
test:
script: echo "Hello world"
script:
- ansible -m setup all -i localhost, --connection=local
test2:
script: ssh root@10.255.20.212 exit
\ No newline at end of file
script:
- ansible -m ping all -i 10.255.20.212, -u root
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment