From 91a1930642cc17843da979b02d0cd14979b9411d Mon Sep 17 00:00:00 2001 From: Matt Reeves Date: Thu, 5 Dec 2024 00:47:09 -0500 Subject: [PATCH] fix init ansible migration (sshkey) --- .forgejo/workflows/ansibleCD.yml | 5 +++-- ansible/ansible.cfg | 3 ++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/.forgejo/workflows/ansibleCD.yml b/.forgejo/workflows/ansibleCD.yml index 2913a64..483aa3f 100644 --- a/.forgejo/workflows/ansibleCD.yml +++ b/.forgejo/workflows/ansibleCD.yml @@ -86,8 +86,9 @@ jobs: echo "Deploying to $target_host for folder $folder" - name: Run Ansible Playbook - uses: docker://mafyuh/ansible-bws:v1.0.0 + uses: docker://mafyuh/ansible-bws:v1.0.1 with: args: ansible-playbook -i hosts.ini /playbooks/deploy-docker.yml --extra-vars "target_host=$target_host folder=$folder" env: - BWS_ACCESS_TOKEN: ${{ secrets.BWS_ACCESS_TOKEN }} \ No newline at end of file + BWS_ACCESS_TOKEN: ${{ secrets.BWS_ACCESS_TOKEN }} + SSH_PRIVATE_KEY: ${{ secrets.SSH_PRIVATE_KEY }} \ No newline at end of file diff --git a/ansible/ansible.cfg b/ansible/ansible.cfg index e5e8544..fae9ca3 100644 --- a/ansible/ansible.cfg +++ b/ansible/ansible.cfg @@ -1,4 +1,5 @@ [defaults] inventory = ./hosts.ini ansible_user = mafyuh -host_key_checking = False \ No newline at end of file +host_key_checking = False +private_key_file = /root/.ssh/id_rsa \ No newline at end of file