Cookiecutter Templates
Document Control
TODO:
- Overall structure.
- Initial draft complete
- Testing
- Ready
Creating a role with molecule
You can use ansible-galaxy to create a role. You can also use
molecule
- and specify a cookie cutter template as source.
molecule init template
Example command
with shell, yaml and output
molecule init template \ --url https://github.com/devopstoolbox/cookiecutter-role.git \ --role-name myrole
--> Initializing new role myrole... role_name [myrole]: author [Mihai Criveti]: author_information [[Mihai Criveti](https://www.linkedin.com/in/devopstoolbox/)]: description [Myrole]: company [Mihai Criveti]: Select license: 1 - MIT 2 - BSD-3 Choose from 1, 2 [1]: min_ansible_version [2.4]: Initialized empty Git repository in /home/cmihai/devopstoolbox/myrole/.git/ [master (root-commit) f7cef9b] Ansible myrole role: Myrole 41 files changed, 1169 insertions(+)
Last update: 2020-02-09