Skip to content

Commit

Permalink
Create setup.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
sumanth979 committed Oct 18, 2020
1 parent 8bf5ffb commit b036100
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions setup.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
echo "Creating the stack"
aws cloudformation create-stack --stack-name demo-stack --template-body blueGreen.yaml --parameters parameters.json

echo "Dynamically create the invertory file for ansible"
python3 dynamicInventory.py demo-stack us-east-1

echo "Run Ansible Playbook to deploy mediaWiki"
ansible-playbook playbook.yaml -i invertory.txt

0 comments on commit b036100

Please sign in to comment.