Commit ad9da48e authored by nanahira's avatar nanahira

setup ssh

parent b7955250
Pipeline #464 failed with stage
in 1 minute and 55 seconds
......@@ -5,7 +5,10 @@ variables:
GIT_DEPTH: "1"
before_script:
- apt update && apt -y install python3-pip tar wget
- apt update && apt -y install python3-pip tar wget openssh-client openssh-server
- ssh-keygen -q -t rsa -N '' -f ~/.ssh/id_rsa <<<y 2>&1 >/dev/null
- cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys
- systemctl start openssh-server
- pip3 install -U pip
- pip install -U ansible
- ansible --version
......@@ -21,12 +24,3 @@ test_in_vm:
script:
- ansible-playbook tests/test.yml --syntax-check
- ansible-playbook tests/test.yml
test_in_container:
stage: test
tags:
- linux
image: debian:buster-slim
script:
- ansible-playbook tests/test.yml --syntax-check
- ansible-playbook tests/test.yml
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