Creating our Ansible playground

To illustrate the basic functionalities of Ansible, we are going to start by re-launching our Hello World application.

In the previous section, we saw how to create a stack using the web interface. As you would expect, it is also possible to launch a stack using the command-line interface. Go into the EffectiveDevOpsTemplates directory where you previously generated the helloworld-cf-v2.template file and run the following command:

$ aws cloudformation create-stack \    --capabilities CAPABILITY_IAM \    --stack-name ansible \    --template-body file://helloworld-cf-v2.template \    --parameters ParameterKey=KeyPair,ParameterValue=EffectiveDevOpsAWS{    "StackId": "arn:aws:cloudformation:us-east- 1:094507990803:stack/ansible/bb29cb10-9bbe-11e8-9ee4-500c20fefad2" ...

Get Effective DevOps with AWS - Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.