Coder Social home page Coder Social logo

nimgeneva / ansible Goto Github PK

View Code? Open in Web Editor NEW

This project forked from networknuts/ansible

0.0 0.0 0.0 75 KB

Ansible Administration. Generic playbooks for routine sys admin jobs. A lot of practical use cases which are not a part of any training curriculum like database backups using ansible.

HTML 100.00%

ansible's Introduction


Logo

Ansible

Some sample playbooks for Ansible Course

http://networknuts.net

Usage

Use this to execute an ad-hoc command.

ansible hostname -m modulename -a 'arguments'

Use the syntax-check command to check syntax in a playbook.

ansible-playbook *playbookname.yml* --syntax-check

Use this to execute a playbook.

ansible-playbook *playbookname.yml*

Use this check ansible documentation for a module.

ansible-doc *modulename*

Chapter 2: Introduction to Playbooks

This introduces you to the world of Ansible playbooks. Here you will find playbooks for basic tasks.

Chapter 3: Multiple Plays

This chapter contains playbooks with multiple plays inside of them. It illustrates how to use playbooks effectively.

Chapter 4: Variables in Ansible

This chapter focuses on making our code reusable in different situations by using the concepts of variables.

Chapter 5: Loops in Ansible

In this chapter, we see playbooks where loops are being used to minimize duplication of tasks.

Chapter 6: Conditions in Ansible

Ansible conditions teach us how to adapt our playbooks to different conditions such as only running plays when certain conditions are true.

Chapter 7: Ansible Handlers

This chapter shows how to use Ansible Handlers to only perform certain tasks when needed.

Chapter 8: Task Failure Handling

Task Failure or a failure in our Playbooks will happen. This chapter shows us how to handle errors in our Playbooks.

Chapter 9: Templating in Ansible

Creating custom files depending upon the environment is important, playbooks in this chapter shows us how to do so using the Ansible Templating Engine known as Jinja2.

ansible's People

Contributors

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