Refactor ansible-apply.yaml to improve SSH key handling

This commit is contained in:
2024-09-24 16:35:17 +02:00
parent 9dfbe14313
commit c91c34fdae
3 changed files with 3 additions and 5 deletions
+2 -2
View File
@@ -10,7 +10,7 @@ on:
- closed
jobs:
plan:
apply-playbooks:
runs-on: ubuntu-latest
steps:
@@ -31,9 +31,9 @@ jobs:
VAULT_MASTER_PASSWORD: ${{ secrets.VAULT_MASTER_PASSWORD }}
run: |
sectool ssh unlock ansible
cp ssh-keys/ansible ~/.ssh/id_rsa
mkdir -p ~/.ssh
chmod 700 ~/.ssh
cp ssh-keys/ansible/id_rsa ~/.ssh/id_rsa
chmod 600 ~/.ssh/id_rsa
- name: Apply Ansible Playbook