Cookie cutter recipe to easily create ansible roles It infuses antigravity (or maybe not).
- Follows best practices.
- Only Creates the necessary files and folders.
- Blazing fast creation, forget about file creation and focus in actions.
- Linux
- none
- OSX
- none
cookiecutter https://github.com/dgnest/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 files? [Y/n] y
This will generate this folders (Please note the absence of templates folder):
├── CHANGELOG.md
├── CONTRIBUTING.md
├── LICENSE
├── README.md
├── defaults
│ └── main.yaml
├── files
├── handlers
│ └── main.yaml
├── meta
│ └── main.yml
├── tasks
│ ├── apps.yaml
│ ├── configure.yaml
│ ├── dependences.yaml
│ ├── environment.yaml
│ ├── files.yaml
│ ├── host.yaml
│ ├── include_vars.yaml
│ ├── install.d
│ │ ├── CentOS.yaml
│ │ └── Ubuntu.yaml
│ ├── install.yaml
│ ├── load.yaml
│ ├── main.yaml
│ ├── pip.yaml
│ ├── post_install.yaml
│ └── templates.yaml
├── templates
│ └── default.j2
├── tests
│ ├── inventory
│ └── test.yaml
└── vars
├── CentOS.yaml
├── Ubuntu.yaml
└── main.yaml
Please see CHANGELOG for more information what has changed recently.
Please see CONTRIBUTING for details.
Made with ❤️ ☕ and 🍕 by dgnest