Skip to content

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.

Notifications You must be signed in to change notification settings

networknuts/Ansible

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

57 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation


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.

About

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.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages