diff options
| author | Jan Tuomi <jan.tuomi@eficode.com> | 2019-12-30 22:39:19 +0200 |
|---|---|---|
| committer | Jan Tuomi <jan.tuomi@eficode.com> | 2019-12-30 22:39:19 +0200 |
| commit | 51a17676f82910692cb2839c28619b332cdcb2ff (patch) | |
| tree | 48b28b66d919f44ad9f3b35190a1dc381df444d2 | |
| parent | e7d694e415ba2e9e0cf8e68438ba86a0caa70af4 (diff) | |
Disable host key checking in ansible.cfg0.0.21
| -rw-r--r-- | .gitlab-ci.yml | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index f96c4e5..7372698 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -28,4 +28,5 @@ deploy: script: - chmod 600 "$SSH_PRIVATE_KEY_FILE" - IMAGE="$IMAGE_NAME:$CI_COMMIT_TAG" + - printf "[defaults]\nhost_key_checking = False\n" > /etc/ansible/ansible.cfg - ansible-playbook --private-key "$SSH_PRIVATE_KEY_FILE" -i "$INVENTORY_FILE" -e "image_name=$IMAGE docker_user=gitlab-ci-token docker_password=$CI_JOB_TOKEN docker_registry=$CI_REGISTRY" -u root ansible/deploy-playbook.yaml |
