Skip to content

building5/simply-ansible

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simply Ansible

From what started out as a slide deck describing getting started and best practices for Ansible, Simply Ansible is now a cookiecutter template for quickly getting started with a decent Ansible project structure. It has a handful of roles that I've found useful, and is a decent starting point for new projects.

For no other reason than to serve as an example, these scripts spin up:

  • Node.js on Ubuntu xenial (representing new services)
  • Ruby 2.3.1 on Ubuntu trusty (representing legacy services)
  • Ruby 2.1.10 on Ubuntu precise (representing something crazy old you really ought to replace)
  • A CentOS 7 VM, because there's always something that has to be different

Usage

$ pip install cookiecutter # or your favorite package manager

$ cookiecutter gh:building5/simply-ansible

Or if you happen to have a local clone of this repo:

$ cookiecutter ./simply-ansible

Features

  • Running Ansible in a virtualenv, to avoid surprises from version ` differences on different control machines
  • Wrapper scripts for consistently running ansible-playbook
  • Vagrant for local development
  • Installs a role from Ansible galaxy

TODO

  • AWS Cloudformation scripts for spinning up staging and production environments.
    • And inventory and associated group_vars
  • Test if project_slug is a valid domain name
  • Figure out how to avoid shared accounts. Ansible should SSH as the user running the playbook; not as a shared user like vagrant or ubuntu
    • But that shared user is necessary for initial spinups, since that's the only user on the VM.

LICENSE

ISC License

About

Cookiecutter template for new Ansible projects

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages