update defaults, content and allowes roles not at galaxy

This commit is contained in:
L3D 2023-03-12 01:18:18 +01:00
parent 144c5069f6
commit 7b2d0513d9
Signed by: l3d
GPG key ID: CD08445BFF4313D1
3 changed files with 72 additions and 5 deletions

View file

@ -15,6 +15,10 @@ name: Gitea and Forgejo
----
gitrepo: https://github.com/roles-ansible/ansible_role_gitea.git
----
gitearepo: https://backwesen.de/ansible/ansible_role_gitea.git
----
no_galaxy: yes
----
galaxy_name: do1jlr.gitea
----
galaxy_url: https://galaxy.ansible.com/do1jlr/gitea
@ -27,6 +31,10 @@ name: Unbound
----
gitrepo: https://github.com/roles-ansible/ansible_role_unbound.git
----
gitearepo:
----
no_galaxy: true
----
galaxy_name: do1jlr.unbound
----
galaxy_url: https://galaxy.ansible.com/do1jlr/unbound
@ -39,6 +47,10 @@ name: OpenSSH Server
----
gitrepo: https://github.com/roles-ansible/ansible_role_sshd.git
----
gitearepo: https://backwesen.de/ansible/ansible_role_sshd.git
----
no_galaxy: true
----
galaxy_name: do1jlr.sshd
----
galaxy_url: https://galaxy.ansible.com/do1jlr/sshd
@ -51,7 +63,11 @@ name:
Network Time Protocol
----
gitrepo: https://github.com/roles-ansible/ansible_role_ntp
gitrepo: https://github.com/roles-ansible/ansible_role_ntp.git
----
gitearepo: https://backwesen.de/ansible/ansible_role_ntp.git
----
no_galaxy: true
----
galaxy_name: do1jlr.ntp
----
@ -60,6 +76,38 @@ galaxy_url: https://galaxy.ansible.com/do1jlr/ntp
maintainance: true
----
license: Apache-2
#### table ####
name: Ranger
----
gitrepo: https://github.com/roles-ansible/ansible_role_ranger.git
----
gitearepo: https://backwesen.de/ansible/ansible_role_ranger.git
----
no_galaxy: true
----
galaxy_name: do1jlr.ranger
----
galaxy_url: https://galaxy.ansible.com/do1jlr/ranger
----
maintainance: true
----
license: MIT
#### table ####
name: Rspamd
----
gitrepo: https://github.com/roles-ansible/ansible_role_rspamd.git
----
gitearepo: https://backwesen.de/ansible/ansible_role_rspamd.git
----
no_galaxy: no
----
galaxy_name: do1jlr.rspamd
----
galaxy_url:
----
maintainance: poor
----
license: MIT
---
tabletitle: List of my ansible roles and in which state they are.
---

View file

@ -7,18 +7,33 @@ label = Ansible Role Name
type = string
[fields.gitrepo]
label = Git Repo
label = Github Repo
type = url
width = 1/2
[fields.gitearepo]
label = Gitea Repo
type = url
width = 1/2
[fields.no_galaxy]
label = Role has Galaxy
type = boolean
checkbox_label = Uncheck if role is not at galaxy
default = true
width = 1/8
[fields.galaxy_name]
label = Ansible Galaxy Name
description = And Icons file Name
type = string
width = 1/3
width = 3/8
default = do1jlr.template
[fields.galaxy_url]
label = Ansible Galaxy Address
type = url
width = 2/3
width = 1/2
[fields.maintainance]
label = Maintainance Status

View file

@ -19,7 +19,11 @@
<tr>
<th><a href="{{ blk.gitrepo }}" target="_blank">{{ blk.name }}</a></th>
<td>
<a href="{{ blk.galaxy_url }}"><img src="{{ {'name': blk.galaxy_name, 'state': blk.galaxy_name, 'label': 'ansible-galaxy'} | svg }}" /></a>
{% if blk.no_galaxy %}
<a href="{{ blk.galaxy_url }}">
<img src="{{ {'name': blk.galaxy_name, 'state': blk.galaxy_name, 'label': 'ansible-galaxy'} | svg }}" />
</a>
{% else %}-{% endif %}
</td>
<td>
<img src="{{ {'name': blk.galaxy_name, 'state': blk.maintainance, 'label': 'maintainance'} | svg }}" />