Last updated: 07.07.2020
The purpose of the repo is to provide simple tutorials for Ansible.
The tutorials in this repo are as follows:
-
Getting Started
Shows the user how to set up their environment and run some Ansible. The tutorial is located in the t1-getting-started folder.
-
Getting Started with Playbooks
Adds to tutorial 1 by introducing playbooks. The tutorial is located in the t2-using-playbooks folder.
-
Using Variables
Adds to tutorial 2 by showing how to work with variables in a playbook. The tutorial is located in the t3-using-variables folder.
-
Organizing Your Ansible Code With Roles
As you build for your Ansible project(s), you will recognize a proliferation of playbooks and variables, and soon, you will have a hard time recognizing what your ansible code is doing. To solve this problem, the playbooks can be refactored into Ansible roles. The purpose of this tutorial is to show how to refactor your variables and playbooks into an Ansible role.
The tutorial is located in the t4-organizing-your-ansible-code-with-roles folder. -
Creating Custom Ansible Modules
As you build your Ansible project(s), you will find a time when ansible might not be the best place to store your code. This might be a time to create a custom ansible module. The tutorial is located in the t5-creating-custom-modules folder.
After you are finished with the tutorials above, try the following tutorials to improve your ansible skills: