From 3108c915c8fea1dbbbc01fa725e1d6d34b414022 Mon Sep 17 00:00:00 2001 From: sotos Date: Wed, 17 Dec 2025 08:52:24 +0100 Subject: [PATCH] Update --- .gitea/workflows/yamllint.yml | 20 ++++++++------------ 1 file changed, 8 insertions(+), 12 deletions(-) diff --git a/.gitea/workflows/yamllint.yml b/.gitea/workflows/yamllint.yml index 4c821b4..e523eba 100644 --- a/.gitea/workflows/yamllint.yml +++ b/.gitea/workflows/yamllint.yml @@ -41,18 +41,14 @@ jobs: - name: Setup SSH key with passphrase run: | - mkdir -p ~/.ssh - printf "%s\n" "${{ secrets.SSH_PRIVATE_KEY }}" > ~/.ssh/id_rsa - chmod 600 ~/.ssh/id_rsa - ssh-keyscan -H 213.95.90.157 >> ~/.ssh/known_hosts - eval "$(ssh-agent -s)" - ssh-add ~/.ssh/id_rsa <<< "${{ secrets.SSH_PASSPHRASE }}" - + echo " Checking SSH key setup..." + head -5 ~/.ssh/id_rsa | cat -v + ls -l ~/.ssh/id_rsa + file ~/.ssh/id_rsa || echo "file command not available" + echo " Testing SSH connection..." + ssh -i ~/.ssh/id_rsa root@213.95.90.157 'echo SSH connection successful' + echo " Running Ansible Playbook..." - name: Run Ansible deployment run: | - if [ -n "$SSH_PASSPHRASE" ]; then - eval "$(ssh-agent -s)" - ssh-add ~/.ssh/id_rsa <<< "$SSH_PASSPHRASE" - fi - ansible-playbook -i ansible/inventory.yaml site.yaml \ No newline at end of file + ansible-playbook -i ansible/inventory.yaml site.yaml \ No newline at end of file