Skip to content

The repository provides tutorials to begin working with Ansible Molecule.

Notifications You must be signed in to change notification settings

bretmullinix/ansible-molecule-for-beginners

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Working with Ansible Molecule

Last updated: 08.07.2020

Purpose

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:

  1. Create a test that fails
  2. Create a test that passes with the smallest amount of code possible
  3. Refactor: Restructure the code for various reasons. The reason could be maintainability, performance, etc.
  4. 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.

Prerequisites

  1. A working knowledge of Docker.
  2. A working knowledge of Ansible. If you need a tutorial for Ansible, please complete the tutorials in the ansible for beginners repo.

Tutorials

The tutorials in this repo are as follows:

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

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

About

The repository provides tutorials to begin working with Ansible Molecule.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published