Refactor SSH configuration in ansible-apply.yaml and fix trusted hosts
This commit is contained in:
@@ -6,6 +6,7 @@ on:
|
||||
- main
|
||||
paths:
|
||||
- "ansible/**"
|
||||
- .github/workflows/ansible-apply.yaml
|
||||
|
||||
jobs:
|
||||
apply-playbooks:
|
||||
@@ -40,7 +41,7 @@ jobs:
|
||||
run: |
|
||||
mkdir -p ~/.ssh
|
||||
for host in $TRUSTED_HOSTS; do
|
||||
ssh-keyscan -H $host >> ~/.ssh/known_hosts
|
||||
ssh-keyscan $host >> ~/.ssh/known_hosts
|
||||
done
|
||||
|
||||
- name: Apply Ansible Playbook
|
||||
|
||||
Reference in New Issue
Block a user