From f71f329980cbe5c9f60b4f9b4d4046f2423340d7 Mon Sep 17 00:00:00 2001 From: Egor Vasiliev 00665613 Date: Tue, 9 Apr 2024 10:09:31 +0300 Subject: [PATCH] add description --- tasks/configure.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tasks/configure.yml b/tasks/configure.yml index e6be777..1871400 100644 --- a/tasks/configure.yml +++ b/tasks/configure.yml @@ -16,6 +16,9 @@ - name: Set proper version for apt repo ansible.builtin.set_fact: + # input: 1.27.1 or 1.27.13 or v1.27.13 + # output: v1.27 + # first slash escapes second slash k8s_cluster_apt_kubernetes_version: "{{ k8s_cluster_kubernetes_version | regex_replace('^v?(\\d\\.\\d\\d)\\.\\d*$', 'v\\1') }}" - name: Add Kubernetes apt key