From 92d5c9d8ed8500d6684ea9178a535684fa2d5bd6 Mon Sep 17 00:00:00 2001 From: Robert Kaussow Date: Sat, 10 Oct 2020 14:15:24 +0200 Subject: [PATCH] fix missing vars error --- defaults/main.yml | 3 ++- templates/etc/sysconfig/renovate.j2 | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/defaults/main.yml b/defaults/main.yml index 0cb95dc..51056cc 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -15,4 +15,5 @@ renovatebot_autodiscover: False renovatebot_endpoint: "https://github.company.com/api/v3" renovatebot_git_author: "Renovate Bot " renovatebot_platform: github -renovatebot_token: +# @var renovatebot_token:description: Personal access token for your bot account. +# renovatebot_token: $ "_unset_" diff --git a/templates/etc/sysconfig/renovate.j2 b/templates/etc/sysconfig/renovate.j2 index cc08200..5e1c128 100644 --- a/templates/etc/sysconfig/renovate.j2 +++ b/templates/etc/sysconfig/renovate.j2 @@ -1,7 +1,9 @@ #jinja2:lstrip_blocks: True {{ ansible_managed | comment }} +{% if renovatebot_github_token is defined %} GITHUB_COM_TOKEN="{{ renovatebot_github_token }}" +{% endif %} RENOVATE_AUTODISCOVER="{{ renovatebot_autodiscover | bool | lower }}" RENOVATE_ENDPOINT="{{ renovatebot_endpoint }}" RENOVATE_GIT_AUTHOR="{{ renovatebot_git_author }}"