Skip to content

Template for generating an ansible role with support for molecule on azure

License

Notifications You must be signed in to change notification settings

datwiz/molecule-azure-role-template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Molecule + Azure Role Template

A cookiecutter template for ansible role development using molecule on azure.

Assumptions

  • Using an existing Azure resource group. env var ${ASURE_RESOURCE_GROUP}
  • The existing resource group contains a single vnet and subnet

Configuration

Out-of-the-box configuration provides:

  • azure driver
  • an Ubunutu 18.04 Canonical instance
  • instance uses managed disks with Standard tier storage
  • instance size is a Standard_B1s burstable The initial molecule configuration can be customised in the molecule.yml file.

Usage

Create a new role within a ./<playbook>/roles/. directory:

$ export AZURE_RESOURCE_GROUP=sandbox
$ molecule init template --url https://www.github.com/datwiz/molecule-azure-role-template -r my-role
$ cd my-role
$ molecule list
$ molecule create
$ molecule converge
$ molecule verify
$ molecule destroy

References

  • This template was created by customsing the default molecule template using the azure driver. molecule init --role-name default --driver azure
  • cookiecutter-molecule reference example: retr0h/cookiecutter-molecule

About

Template for generating an ansible role with support for molecule on azure

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages