Giter VIP home page Giter VIP logo

ansible-aws-example's Introduction

ansible-aws-example

An example Ansible playbook for creating a security group and a specified number of instances on AWS.

This playbook uses the ec2 and ec2_group Ansible modules. To learn more about configuration options with these modules:

Configuration

Before running the playbook, you need to to make changes to a few of the configuration files.

ansible.cfg

Edit ansible.cfg to specify the location of your AWS private key file.

group_vars/all

Edit group_vars/all to set the following values:

  • aws_access_key: specify AWS Access Key
  • aws_secret_key: specify AWS Secret Key
  • key_name: specify private key name alias
  • aws_region: specify aws region
  • vpc_id: specify vpc id
  • cidr_ip: specify cidr_ip
  • instance_type: specify intance_type

inventory/hosts

Edit inventory/hosts to specify a custom Python path, such as Anaconda.

Run Playbook

To run the playbook, you only need to use a single command

$ ansible-playbook -i inventory/hosts playbooks/aws-demo.yml

ansible-aws-example's People

Contributors

asifbg-systems avatar jaraxal avatar usamayousuf13 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.