Code Monkey home page Code Monkey logo

ansible101's Introduction

Ansible Training

Ansible is a configuration management tool that allows you to configure and manage other machines remotely. What makes it unique from other configuration management software like Chef or Puppet:

  • It uses existing SSH infrastructure
  • No needs for dedicated server, even your laptop can manage 100s of machine
  • Easy to get started with it
  • It uses "Facts", gathers information about system and environment before running the tasks
  • Ansible Tasks are idempotent

Prerequisites for Training:

You need the install the following software on your machine:

1 - Vitualbox

2 - Vagrant

Cloning the tutorial

git clone https://gitlab.com/mastour-anas/ansible101.git
cd ansible101

This training already contains a Vagrantfile to get you up and running. Note that you do not need to download any "box" manually. Just run this command and it will get everything for you that you need to perform this training.

vagrant up

It will bring up the control machine (Ubuntu 18.04 LTS) and perform the following actions on it:

  • Add the latest Ansible repository
  • Add the insecure RSA key that will be used for client machines
  • Add some additional SSH config

Once your machine is up and running, login to the control machine using the following command:

vagrant ssh

There are four other machines, which will be used as clients for practice, on which we'll perform the configuration using ansible from control machine, given them the named

  • web1
  • web2
  • database
  • loadbalancing

To start these machines, use the following commands:

vagrant up web1
vagrant up web2
vagrant up database
vagrant up loadbalancing

If something will go wrong, please refer to the Vagrant's Getting Started Guide.

For grammar, spelling mistake etc... please create a PR for the master branch directly.

Thank you!

ansible101's People

Contributors

amastour avatar

Stargazers

 avatar

Watchers

 avatar  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.