Last updated: 08.07.2020
The purpose of the repo is to provide simple tutorials for Ansible Molecule. Ansible Molecule allows you to perform Test Driven Development on Ansible code. Test Driven Development (TDD) is a process where you do the following for any new or changed code:
- Create a test that fails
- Create a test that passes with the smallest amount of code possible
- Refactor: Restructure the code for various reasons. The reason could be maintainability, performance, etc.
- Repeat steps 1-3 until the new code has been added, or the code change is complete.
The process of failing a test, passing a test, and refactoring is better known as Red, Green, Refactor.
- A working knowledge of Docker.
- A working knowledge of Ansible. If you need a tutorial for Ansible, please complete the tutorials in the ansible for beginners repo.
The tutorials in this repo are as follows:
-
Getting Started
Shows the user how to set up their environment and run Ansible Molecule. The tutorial is located in the t1-getting-started folder.
-
Running Ansible Molecule on AWS
Shows the user how to set up their environment and run Ansible Molecule on AWS. The tutorial is located in the t2-getting-started-with-aws folder.