ci: disable host key check for runner

This commit is contained in:
fiftin 2024-03-23 16:55:38 +01:00
parent fc87dee759
commit f1730ee6a5

View File

@ -1,12 +1,16 @@
#!/bin/sh
echo Loading environment...
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...
export ANSIBLE_HOST_KEY_CHECKING=False
export ANSIBLE_STDOUT_CALLBACK=yaml
export ANSIBLE_LOAD_CALLBACK_PLUGINS=yes