fix ansibleCD

This commit is contained in:
Matt Reeves 2024-12-05 00:49:35 -05:00
parent 91a1930642
commit 4a74533c72

View file

@ -84,11 +84,12 @@ jobs:
;; ;;
esac esac
echo "Deploying to $target_host for folder $folder" echo "Deploying to $target_host for folder $folder"
done
- name: Run Ansible Playbook - name: Run Ansible Playbook
uses: docker://mafyuh/ansible-bws:v1.0.1 uses: docker://mafyuh/ansible-bws:v1.0.1
with: with:
args: ansible-playbook -i hosts.ini /playbooks/deploy-docker.yml --extra-vars "target_host=$target_host folder=$folder" args: ansible-playbook -i hosts.ini /playbooks/deploy-docker.yml --extra-vars "target_host=$target_host folder=$folder"
env: env:
BWS_ACCESS_TOKEN: ${{ secrets.BWS_ACCESS_TOKEN }} BWS_ACCESS_TOKEN: ${{ secrets.BWS_ACCESS_TOKEN }}
SSH_PRIVATE_KEY: ${{ secrets.SSH_PRIVATE_KEY }} SSH_PRIVATE_KEY: ${{ secrets.SSH_PRIVATE_KEY }}