GithubHelp home page GithubHelp logo

tusharjadhav2986 / ansible-sample-application-deployment Goto Github PK

View Code? Open in Web Editor NEW

This project forked from devops4solutions/ansible-sample-application-deployment

0.0 2.0 0.0 53 KB

This repository will contain sample code to deploy the sample application on AWS

Shell 100.00%

ansible-sample-application-deployment's Introduction

Ansible-Sample-Application-Deployment

This repository will contain sample code to deploy the sample application on linux instance

Directory Structure

  1. configs - contain environment specific variable

  2. inventories - contains inventory file for each environment

  3. groups_vars - contains common variables across environments

  4. roles - This will have subfolders like java,tomcat

    a) tomcat - this folder will have files related to the installation of tomcat

         - files (This will contain files which you want to copy to to your destination servers)
    
         - handlers ( This is used to start/stop the services)
    
         - templates (This will contain template files)
    
         - tasks ( playbook to install the software)
    

    b) add_devops_user - This folder will have files related to the setup of initial user

  5. main.yml - This is the main file which will execute roles in the playbook

How to Run the Playbook

ansible-playbook main.yml -i inventories/dev/hosts --user ec2-user --key-file /home/ec2-user/playbooks/ansible_aut.pem -e '@configs/dev.yml'

ansible-playbook main.yml -i inventories/dev/hosts --user devops --key-file /home/devops/.ssh/id_rsa -e '@configs/dev.yml'


References

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.