mirror of
https://github.com/semaphoreui/semaphore.git
synced 2024-11-23 20:35:24 +01:00
ci: disable host key check for runner
This commit is contained in:
parent
fc87dee759
commit
f1730ee6a5
@ -1,12 +1,16 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
echo Loading environment...
|
echo Loading environment...
|
||||||
|
|
||||||
source /home/semaphore/venv/bin/activate
|
source /home/semaphore/venv/bin/activate
|
||||||
|
|
||||||
|
echo "--> Turn off StrictKeyChecking"
|
||||||
|
cat > /etc/ssh/ssh_config <<EOF
|
||||||
|
Host *
|
||||||
|
StrictHostKeyChecking no
|
||||||
|
UserKnownHostsFile=/dev/null
|
||||||
|
EOF
|
||||||
|
|
||||||
echo Staring runner...
|
echo Staring runner...
|
||||||
|
|
||||||
|
|
||||||
export ANSIBLE_HOST_KEY_CHECKING=False
|
export ANSIBLE_HOST_KEY_CHECKING=False
|
||||||
export ANSIBLE_STDOUT_CALLBACK=yaml
|
export ANSIBLE_STDOUT_CALLBACK=yaml
|
||||||
export ANSIBLE_LOAD_CALLBACK_PLUGINS=yes
|
export ANSIBLE_LOAD_CALLBACK_PLUGINS=yes
|
||||||
|
Loading…
Reference in New Issue
Block a user