mafalb / cookiecutters-ansible

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Cookiecutters for ansible

master master branch
dev dev branch

create a basic ansible collection:

cookiecutter https://github.com/mafalb/cookiecutters-ansible --directory collection

This creates not only the directories and files for the ansible collection but also a cookiecutter.yaml with the context

default_context:
    collection_namespace: "mafalb"
    collection_name: "httpd"
    author_name: "Markus Falb"
    author_email: "markus.falb@mafalb.at"
    license: "GPL-3.0-or-later"
    repository_url: "https://github.com/mafalb/ansible-collection-httpd"
    hosted_by: "github"

e.g. in the shell:

cookiecutter\
 --overwrite-if-exists\
 --config-file httpd/cookiecutter.yaml --no-input\
 https://github.com/mafalb/cookiecutters-ansible --directory molecule

files for molecule were added to the existing collection

cookiecutter\
 --overwrite-if-exists\
 --config-file httpd/cookiecutter.yaml --no-input\
 https://github.com/mafalb/cookiecutters-ansible --directory github-actions
cookiecutter\
 --overwrite-if-exists\
 --config-file httpd/cookiecutter.yaml --no-input\
 https://github.com/mafalb/cookiecutters-ansible --directory role

License

Copyright (c) 2021 Markus Falb markus.falb@mafalb.at

GPL-3.0-or-later

About


Languages

Language:Python 71.5%Language:Jinja 28.5%