Skip to content

Commit

Permalink
fix/inventory path
Browse files Browse the repository at this point in the history
  • Loading branch information
sabreen-salama committed Apr 7, 2024
1 parent d78caa3 commit 91c3dce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/deploy-stack.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ jobs:
- name: deploy cluster
run: |
aws cloudformation deploy --template-file ./cluster_template.yml --stack-name mycluster --parameter-overrides KeyName=${{ github.event.inputs.keypair}} AvailabilityZone=${{ github.event.inputs.az}} --capabilities CAPABILITY_NAMED_IAM CAPABILITY_AUTO_EXPAND
aws cloudformation describe-stacks --stack-name=mycluster --query "Stacks|[0].Outputs[?OutputKey=='HeadNodeIp']|[0].OutputValue" --output=text >> /ansible/inventory.txt
aws cloudformation describe-stacks --stack-name=mycluster --query "Stacks|[0].Outputs[?OutputKey=='HeadNodeIp']|[0].OutputValue" --output=text >> ./ansible/inventory.txt
ansible-playbook ./ansible/playbook.yaml -i ./ansible/inventory.txt --private-key=private_key.pem

0 comments on commit 91c3dce

Please sign in to comment.