Giter Club home page Giter Club logo

ansible-project-boilerplate's Introduction

ansible-project-boilerplate

Ansible boilerplate for starting new projects.
The examples are based on debian/ubuntu, they can be easily adjusted for other distros.

Folder structure

dir contents
environments/ Configuration for vagrant, development, staging, production or other environments
roles/ All ansible configuration modules
Vagrantfile Configured to initiate local development environment

Vagrant provisioning

Vagrant is just another ansible environment, I don't like using the builtin provisioning system of vagrant.

ansible-playbook -i environments/vagrant/inventory --private-key ~/.vagrant.d/insecure_private_key complete.yml

Adding an environment

  1. Copy the vagrant folder structure in environments to a folder with environment name
  2. Rename the group_vars folder to match the environment
  3. Review all files and update the required to match the nodes

Example

cd environments
cp -Rvp vagrant development
mv development/group_vars/vagrant development/group_vars/development
// Adjust files in development accordingly

ansible-project-boilerplate's People

Contributors

roelentless avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.