generate readme automatically
This commit is contained in:
5
roles/generate_readme/tasks/main.yml
Normal file
5
roles/generate_readme/tasks/main.yml
Normal file
@@ -0,0 +1,5 @@
|
||||
---
|
||||
- name: create readme
|
||||
template:
|
||||
src: readme.j2
|
||||
dest: "{{playbook_dir}}/test.md"
|
||||
41
roles/generate_readme/templates/readme.j2
Normal file
41
roles/generate_readme/templates/readme.j2
Normal file
@@ -0,0 +1,41 @@
|
||||
# Official Ansible Product Demos
|
||||
|
||||
this is currently under construction and working on a minimal viable demo for testing purposes
|
||||
|
||||
# How to use
|
||||
|
||||
## 1. Provide login information and choose demo
|
||||
|
||||
- Modify the `choose_demo.yml` file that is included in this repo with the username, password and IP address (or DNS name) of your Ansible Tower
|
||||
- Choose the demo name you want from the table below (or choose `all`)
|
||||
|
||||
## 2. Run Ansible Playbook
|
||||
|
||||
```
|
||||
ansible-playbook playbooks/install_demo.yml -e @choose_demo.yml
|
||||
```
|
||||
|
||||
# Demo Repository
|
||||
|
||||
<table>
|
||||
<tr>
|
||||
<th>Demo Name</th>
|
||||
<th>install_demo.yml value</th>
|
||||
<th>Description</th>
|
||||
<th>Video Walkthrough</th>
|
||||
<th>Workshop Types</th>
|
||||
</tr>
|
||||
{% for key, value in demos.iteritems() %}
|
||||
<tr>
|
||||
<td>{{value.name}}</td>
|
||||
<td><pre>demo: {{key}}</pre></td>
|
||||
<td>{{value.description}}</td>
|
||||
<td>{% if value.video is defined%}<a href="{{ value.video}}">Video Link</a>{% else %}Not available {% endif %}</td>
|
||||
<td>{{value.workshop_type|to_nice_yaml}}</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</table>
|
||||
|
||||
# Contribute
|
||||
|
||||
please refer to the [contribute.md](docs/contribute.md) documentation included in this collection.
|
||||
@@ -13,6 +13,7 @@
|
||||
- name: add job template without survey
|
||||
tower_job_template:
|
||||
name: "{{item.value.name}}"
|
||||
description: "{{item.value.description}}"
|
||||
job_type: "{{item.value.job_type}}"
|
||||
inventory: "{{item.value.inventory}}"
|
||||
project: "{{item.value.project}}"
|
||||
@@ -29,6 +30,7 @@
|
||||
- name: add job template with survey
|
||||
tower_job_template:
|
||||
name: "{{item.value.name}}"
|
||||
description: "{{item.value.description}}"
|
||||
job_type: "{{item.value.job_type}}"
|
||||
inventory: "{{item.value.inventory}}"
|
||||
project: "{{item.value.project}}"
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
- name: add tower project
|
||||
tower_project:
|
||||
name: "{{project.my_name}}"
|
||||
description: "{{project.my_description}}"
|
||||
organization: "{{project.my_organization}}"
|
||||
scm_type: "{{project.my_scm_type}}"
|
||||
scm_url: "{{project.my_scm_url}}"
|
||||
name: "{{project.name}}"
|
||||
description: "{{project.description}}"
|
||||
organization: "{{project.organization}}"
|
||||
scm_type: "{{project.scm_type}}"
|
||||
scm_url: "{{project.scm_url}}"
|
||||
tower_username: "{{my_tower_username}}"
|
||||
tower_password: "{{my_tower_password}}"
|
||||
tower_host: "{{my_tower_host}}"
|
||||
@@ -13,6 +13,7 @@
|
||||
- name: add single job template without survey
|
||||
tower_job_template:
|
||||
name: "{{demos[demo].name}}"
|
||||
description: "{{demos[demo].description}}"
|
||||
job_type: "{{demos[demo].job_type}}"
|
||||
inventory: "{{demos[demo].inventory}}"
|
||||
project: "{{demos[demo].project}}"
|
||||
@@ -29,6 +30,7 @@
|
||||
- name: add single job template with survey
|
||||
tower_job_template:
|
||||
name: "{{demos[demo].name}}"
|
||||
description: "{{demos[demo].description}}"
|
||||
job_type: "{{demos[demo].job_type}}"
|
||||
inventory: "{{demos[demo].inventory}}"
|
||||
project: "{{demos[demo].project}}"
|
||||
|
||||
Reference in New Issue
Block a user