Skip to content

Commit

Permalink
Use dawidd6/action-ansible-playbook@v2
Browse files Browse the repository at this point in the history
  • Loading branch information
mesudip committed May 9, 2024
1 parent 6297704 commit 445fea6
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions .github/workflows/build-and-deploy-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,13 @@ jobs:
run: sudo apt-get update && sudo apt-get install -y ansible

- name: Run Ansible playbook
env:
SERVER_IP_ADDRESS: ${{ secrets.TEST_STACK_SERVER_IP }}
working-directory: ./tests/test-infrastructure
run: |
ansible-playbook -i ${SERVER_IP_ADDRESS} -e "ansible_user=ec2-user" playbook.yml
uses: dawidd6/action-ansible-playbook@v2
with:
playbook: playbook.yml
directory: ./tests/test-infrastructure
key: ${{ secrets.TEST_STACK_SSH_KEY }}
inventory: |
[server]
${{ secrets.TEST_STACK_SERVER_IP }} ansible_user=ec2-user
options: |
--verbose

0 comments on commit 445fea6

Please sign in to comment.