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