EGI-Federation / ansible-style-guide

A style guide for Ansible use in EGI
https://egi-foundation.github.io/ansible-style-guide
Apache License 2.0
18 stars 5 forks source link

Use cookiecutter to conveniently manage the module skeleton #37

Closed gwarf closed 1 year ago

gwarf commented 5 years ago

Example of a cookiecutter template for ansible role: https://github.com/FGtatsuro/cookiecutter-ansible-role

Benefits:

brucellino commented 5 years ago

Yes, I originally wanted to use cookie cutter for generating the skeleton before, but I didn't have enough time to really write the templates properly. I think this would be a really good addition. This could really speed things up particularly in generating meta and molecule. Specifically, molecule is not part of the galaxy init bit, so you would have an automated default scenario generated for you -- or you could maybe turn that off with a bool.

enolfc commented 1 year ago

@gwarf is this still needed? Are we generating many ansible repos?

gwarf commented 1 year ago

We are likely doing it less than what we should :) I'm fine with closing this issue, I don't have any energy for it.

brucellino commented 1 year ago

hey guys 👋🏾 I reckon you should close this. I created https://github.com/brucellino/ansible-role-template which uses the github "create from template" functionality.

gwarf commented 1 year ago

Hey Bruce! Good to see you around :) Let's close for now, indeed the repo template is cool for this!

brucellino commented 1 year ago

rock on homies 🤘🏾