generated from the-common/project-template
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Implement role and galaxy metadata template
Signed-off-by: 林博仁(Buo-ren Lin) <[email protected]>
- Loading branch information
Showing
3 changed files
with
41 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# meta | ||
|
||
Provides metadata for the Ansible role itself and [Ansible Galaxy](https://galaxy.ansible.com/). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
# Ansible role metadata | ||
# | ||
# Reference: | ||
# | ||
# * Role directory structure — Roles — Ansible Documentation | ||
# https://docs.ansible.com/ansible/latest/user_guide/playbooks_reuse_roles.html#role-directory-structure | ||
# * Using `meta/main.yml — Dependencies — Galaxy User Guide — Ansible | ||
# Galaxy Documentation | ||
# https://docs.ansible.com/ansible/latest/galaxy/user_guide.html#using-meta-main-yml | ||
# * Role Metadata — Creating Roles — Ansible Galaxy Documentation | ||
# https://old-galaxy.ansible.com/docs/contributing/creating_role.html#role-metadata | ||
# | ||
# Copyright 2024 林博仁(Buo-ren Lin) <[email protected]> | ||
# SPDX-License-Identifier: CC-BY-SA-4.0+ OR LicenseRef-Apache-2.0-If-Not-Used-In-Template-Projects | ||
|
||
galaxy_info: | ||
role_name: _name_ | ||
author: _namespace_ | ||
description: _description_ | ||
license: _license_ | ||
|
||
# Refer to the following documentation for the currently officially supported ansible-core releases: | ||
# ansible-core release cycle — Releases and maintenance — Ansible Community Documentation | ||
# https://docs.ansible.com/ansible/devel/reference_appendices/release_and_maintenance.html#ansible-core-release-cycle | ||
min_ansible_version: '2.15' | ||
|
||
# List tags for your role here, one per line. A tag is a keyword that describes | ||
# and categorizes the role. Users find roles by searching for tags. Be sure to | ||
# remove the '[]' above, if you add tags to this list. | ||
# | ||
# NOTE: A tag is limited to a single word comprised of alphanumeric characters. | ||
# Maximum 20 tags per role. | ||
galaxy_tags: [] | ||
|
||
# List your role dependencies here, one per line. Be sure to remove the '[]' above, | ||
# if you add dependencies to this list. | ||
dependencies: [] |