Skip to content

Commit

Permalink
adds ssh key for servers
Browse files Browse the repository at this point in the history
  • Loading branch information
LegitCamper committed Sep 11, 2024
1 parent e9c8017 commit 0b2b607
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion .github/workflows/update-homelab.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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: |
Expand All @@ -45,6 +54,8 @@ jobs:
[all]
homeserver
configuration: |
[defaults]
host_key_checking = False
[ssh_connections]
pipelining = true
options: |
Expand Down

0 comments on commit 0b2b607

Please sign in to comment.