From 5b62791bf638c884ab8a794edfc7cb0291d6994d Mon Sep 17 00:00:00 2001 From: "Kenneth Benzie (Benie)" Date: Sat, 29 Apr 2023 19:18:04 +0100 Subject: [PATCH] Fix glab role on Debian for first install --- roles/glab/tasks/Debian.yaml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/roles/glab/tasks/Debian.yaml b/roles/glab/tasks/Debian.yaml index 86a8aaa..ca7c763 100644 --- a/roles/glab/tasks/Debian.yaml +++ b/roles/glab/tasks/Debian.yaml @@ -12,8 +12,11 @@ register: glab_version_output changed_when: false -- set_fact: +- when: stat_glab.stat.exists + set_fact: glab_version: '{{glab_version_output.stdout | replace("glab version ", "v")}}' + +- set_fact: gitlab_api: 'https://gitlab.com/api/v4' project_id: 'gitlab-org%2Fcli'