From 5213d70cb5596c5eafbe4b7a0b74a1b7e7064375 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Arturo=20Filast=C3=B2?= Date: Mon, 5 Feb 2024 09:01:34 +0100 Subject: [PATCH] Take the known_hosts file from git --- .github/workflows/deploy_production.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/deploy_production.yml b/.github/workflows/deploy_production.yml index 25da3977..c51b2adf 100644 --- a/.github/workflows/deploy_production.yml +++ b/.github/workflows/deploy_production.yml @@ -38,8 +38,7 @@ jobs: - name: Run Ansible Playbook id: playbook env: - # TODO(art): write a known_hosts file from terraform to avoid this - ANSIBLE_HOST_KEY_CHECKING: "False" + ANSIBLE_SSH_ARGS: "-o UserKnownHostsFile=known_hosts" run: | echo "ansible_playbook<> "$GITHUB_OUTPUT" echo "\$ ansible-playbook playbook.yml -i inventory.ini" >> "$GITHUB_OUTPUT"