arehmandev / Molecule-ansible

Testing ansible roles with molecule docker driver

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Testing Ansible playbooks with Molecule

The following is an example of:

  • Ansible roles being tested in 2 docker containers (ubuntu + centos)
  • Ansible linting being run
  • Ansible idempotency test being run

To try for yourself:

1. Install molecule - see https://github.com/metacloud/molecule
2. Clone this repo
3. cd into the directory and run 'molecule test'

About

Testing ansible roles with molecule docker driver