From 0b2b60733ec8b616cc4066b1970e2d2f44a17b9a Mon Sep 17 00:00:00 2001 From: sawyer bristol Date: Tue, 10 Sep 2024 19:18:39 -0600 Subject: [PATCH] adds ssh key for servers --- .github/workflows/update-homelab.yml | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/.github/workflows/update-homelab.yml b/.github/workflows/update-homelab.yml index 7ec5b6f..7649d92 100644 --- a/.github/workflows/update-homelab.yml +++ b/.github/workflows/update-homelab.yml @@ -17,6 +17,13 @@ jobs: - name: install ansible run: sudo apt-get install -y ansible + - name: Install SSH key + uses: shimataro/ssh-key-action@v2 + with: + key: ${{ secrets.SSH_KEY }} + name: id_rsa # optional + # known_hosts: ${{ secrets.KNOWN_HOSTS }} + - name: Run gateway playbook uses: dawidd6/action-ansible-playbook@v2 with: @@ -26,8 +33,10 @@ jobs: requirements: requirements.yml inventory: | [all] - gateway + 143.198.65.127 configuration: | + [defaults] + host_key_checking = False [ssh_connections] pipelining = true options: | @@ -45,6 +54,8 @@ jobs: [all] homeserver configuration: | + [defaults] + host_key_checking = False [ssh_connections] pipelining = true options: |