Chris Mague 7 лет назад
Родитель
Сommit
45d970a11a
3 измененных файлов с 40 добавлено и 4 удалено
  1. 17 0
      README.md
  2. 2 4
      cookiecutter.json
  3. 21 0
      {{cookiecutter.role_name}}/README.md

+ 17 - 0
README.md

@@ -0,0 +1,17 @@
+# cookiecutter-ansible-role
+
+This builds and ansible role with a Vagrantfile for testing in vagrant
+
+## Prerequisites 
+
+ Install cookiecutter
+```
+sudo pip install cookiecutter
+```
+
+Optionally to test using Vagrant:
+Install and configure [virtualbox](https://www.virtualbox.org/wiki/Downloads) and [vagrant](https://www.vagrantup.com/)
+
+## Using 
+
+cookiecutter https://gogs.mague.com/Shokunin/cookiecutter-ansible-role.git 

+ 2 - 4
cookiecutter.json

@@ -3,15 +3,13 @@
   "email": "github@mague.com",
   "role_name": "testrole",
   "github_user": "maguec",
-  "repo_name": "ansible-role",
   "short_description": "description goes here",
   "release_date": "2017-10-12",
-  "year": "2016",
   "version": "0.1.0",
   "min_ansible_version": "2.4",
   "allow_duplicates": "no",
-  "galaxy_tags": "foo,bar,baz",
-  "dependencies": "foo,bar,baz",
+  "galaxy_tags": "",
+  "dependencies": "",
   "target_os": "Ubuntu",
   "target_os_version": "xenial64",
   "company_name": "Shokunin Consulting LLC"

+ 21 - 0
{{cookiecutter.role_name}}/README.md

@@ -0,0 +1,21 @@
+# {{cookiecutter.role_name}}
+
+{{cookiecutter.short_description}}
+
+## Usage
+
+`ansible-galaxy install {{ cookiecutter.role_name }}`
+
+LICENSE: 3-clause BSD license.
+
+
+## Testing
+
+`cd {{ cookiecutter.role_name }} && vagrant up`
+
+## CONTRIBUTING
+
+`git clone git@github.com:{{cookiecutter.github_user}}/ansible-role-{{cookiecutter.role_name}}`
+
+---
+Copyright © {{cookiecutter.release_date.split('-')[0]}}, {{ cookiecutter.full_name }}