Giter Site home page Giter Site logo

stancel / ansible-playbook-scaffolding Goto Github PK

View Code? Open in Web Editor NEW
26.0 1.0 7.0 5 KB

This repos holds a skeleton/scaffolding structure for creating Ansible playbooks based on the recommended directory layout

ansible-playbook scaffolding skeleton skeleton-template automation starter-template

ansible-playbook-scaffolding's Introduction

ansible-playbook-scaffolding

This repos holds a skeleton/scaffolding structure for creating Ansible playbooks based on the recommended directory layout. To use this just clone this repo and name it to whatever you want, remove the .git folder, and start creating your playbook.

How to Use

To use this playbook just run this command.

1. ansible-galaxy install -r requirements.yml -p roles/ --force
2. Create a file called .vault_pass in this folder and put a random string in it for decrypting your sensitive variables. Something like: QSkngTv#KTJ=WXpg6qVR
3. Fill out needed variables in vars/all_vars.yml and vars/vault.yml files
4. ansible-vault encrypt vars/vault.yml   #Encrypt the sensitive variables
5. ansible-playbook master.yml -e @vars/all_vars.yml -e @vars/vault.yml -i hosts/production

Requirements

Place any requirements here, if any, for running this playbook.

Variables

See the vars/all_vars.yml and var/vault.yml files for all of the needed variable values to fill out.

Roles

If you plan to create any roles for this playbook and not just pull in ones you have already written or public ones from Ansible Galaxy, then I would highly recommend using the Ansible Galaxy CLI to create the proper scaffolding/skeleton structure for each of your roles.

ansible-galaxy init name-of-your-role

ansible-playbook-scaffolding's People

Contributors

stancel avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 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.