Compare commits

..

2 commits

Author SHA1 Message Date
19b7b4ced3 Merge branch 'main' of https://git.mafyuh.dev/mafyuh/iac 2024-12-05 00:49:37 -05:00
4a74533c72 fix ansibleCD 2024-12-05 00:49:35 -05:00

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 }}