GithubHelp home page GithubHelp logo

colaborati / cookiecutter-ansible-role Goto Github PK

View Code? Open in Web Editor NEW

This project forked from iknite/cookiecutter-ansible-role

0.0 2.0 0.0 196 KB

Cookie cutter recipe to easily create ansible roles.

License: BSD 3-Clause "New" or "Revised" License

Python 100.00%

cookiecutter-ansible-role's Introduction

Cookiecutter Ansible Role

Cookie cutter recipe to easily create ansible roles. It infuses antigravity (or maybe not).

Features

  • Follows best practices.
  • Only Creates the necessary files and folders.
  • Blazing fast creation, forget about file creation and focus in actions.

Usage

cookiecutter https://github.com/iknite/cookiecutter-ansible-role.git

It begin to ask you configuration variables then you can enter tasks names, handlers names, and default variables.

Inside a Add <some> name i.e (<example>) you can go to next section by entering an empty string.

Example:

ROLE CONFIGURATION:
===================

Should it have tasks?  [Y/n] 
  Add task name i.e (Install packages) Add some task
  Add task name i.e (Install packages) another task 
  Add task name i.e (Install packages) 

Should it have handlers? [Y/n] 
  Add handler name i.e (Restart uwsgi) restart something
  Add handler name i.e (Restart uwsgi) alert someone
  Add handler name i.e (Restart uwsgi) 

It should contain default variables?:  [Y/n] 
  Add variable i.e (operator: : drunken_master) var: name
  Add variable i.e (operator: : drunken_master)      

Should it have meta info?  [Y/n] 
 - Should it have dependecies?  [Y/n] 
    Add dependecy i.e ({role: aptsupercow, var: 'value'}) {role: cool, version: latest}
    Add dependecy i.e ({role: aptsupercow, var: 'value'}) 

Should it have templates?  [Y/n] n

Should it have files?  [Y/n] y

This will generate this folders (Please note the absence of templates folder):

.
├── CONTRIBUTORS.txt
├── defaults
│   └── main.yml
├── files
├── handlers
│   └── main.yml
├── LICENSE.rst
├── meta
│   └── main.yml
├── README.rst
└── tasks
    └── main.yml

Contributions

All contributions are more than welcome, please do so.

License

  • 3-clause BSD license.
  • Copyright ©2014, Enrique Paredes
  • Enjoy it!

cookiecutter-ansible-role's People

Contributors

iknite 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.