Refactor SSH configuration in ansible-apply.yaml and fix trusted hosts
This commit is contained in:
@@ -43,6 +43,7 @@ jobs:
|
|||||||
for host in $TRUSTED_HOSTS; do
|
for host in $TRUSTED_HOSTS; do
|
||||||
ssh-keyscan $host >> ~/.ssh/known_hosts
|
ssh-keyscan $host >> ~/.ssh/known_hosts
|
||||||
done
|
done
|
||||||
|
chmod 600 ~/.ssh/known_hosts
|
||||||
|
|
||||||
- name: Apply Ansible Playbook
|
- name: Apply Ansible Playbook
|
||||||
env:
|
env:
|
||||||
|
|||||||
Reference in New Issue
Block a user