From d7ac20605e35d56e0658b230c81bed679121f6cd Mon Sep 17 00:00:00 2001 From: Robert de Bock Date: Thu, 9 Nov 2023 10:00:44 +0100 Subject: [PATCH] Allow a custom message. --- defaults/main.yml | 2 ++ templates/README.md.j2 | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/defaults/main.yml b/defaults/main.yml index a39e621..27edaa6 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -29,3 +29,5 @@ molecule_action: "robertdebock/molecule-action@6.0.0" # Would you like to add a sponsor message? sponsor message: yes +# A custom message can be placed with this content. +custom_message: "Also see a [full explanation and example](https://robertdebock.nl/how-to-use-these-roles.html) on how to use these roles." diff --git a/templates/README.md.j2 b/templates/README.md.j2 index e213381..21aa4bc 100644 --- a/templates/README.md.j2 +++ b/templates/README.md.j2 @@ -20,7 +20,7 @@ The machine needs to be prepared. In CI this is done using [`molecule/default/pr {{ prepare.content | b64decode | regex_replace('ansible-role-', galaxy_namespace ~ '.') }}``` {% endif %} -Also see a [full explanation and example](https://robertdebock.nl/how-to-use-these-roles.html) on how to use these roles. +{% custom_message %} {% if variables.content is defined %} ## [Role Variables](#role-variables)