Skip to content

This is project demonstrates how we can use the IT automation tool Ansible to create AWS hosts and deploy an Nginx container.

Notifications You must be signed in to change notification settings

mchinaloy/ansible-example

Repository files navigation

ansible-example

This is project demonstrates how we can use the IT automation tool Ansible to create AWS hosts and deploy an Nginx container.

Pre-requisites

  1. Ansible version 2.1.1.0
  2. AWS Cli tools
  3. AWS account with PEM, Key and Secrets known

How to use this project

  1. Create an AWS account
  2. Specify your PEM, Key and Secret in inventories/aws/group_vars/all.yml
  3. Create your host:
./scripts/cluster.sh create
  1. Deploy the Nginx Docker container:
./scripts/cluster.sh deploy-nginx
  1. To terminate your instance:
./scripts/cluster.sh terminate

Note * There is a secrets file included to demonstrate how we can use ansible-vault but it is not required for this example.

About

This is project demonstrates how we can use the IT automation tool Ansible to create AWS hosts and deploy an Nginx container.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published