From 2febd53c72ccd14329892355753c439785804afd Mon Sep 17 00:00:00 2001 From: Bas Meijer Date: Mon, 16 Dec 2024 10:41:21 +0100 Subject: [PATCH] use_helm boolean to install on controller --- inventory/dev/group_vars/all.yml | 3 ++- inventory/test/group_vars/all.yml | 3 ++- provision.yml | 5 +++++ roles/requirements.yml | 2 ++ 4 files changed, 11 insertions(+), 2 deletions(-) diff --git a/inventory/dev/group_vars/all.yml b/inventory/dev/group_vars/all.yml index 29d0deb..fb63f2c 100644 --- a/inventory/dev/group_vars/all.yml +++ b/inventory/dev/group_vars/all.yml @@ -4,9 +4,10 @@ docker_users: docker_install_compose: true docker_install_compose_plugin: true +use_helm: true +use_krew: true kubectl_ver: v1.29.3 kubectl_install_dir: /usr/bin -use_krew: true krew_install_plugins: - ctx - ns diff --git a/inventory/test/group_vars/all.yml b/inventory/test/group_vars/all.yml index 76e6ba3..df7d663 100644 --- a/inventory/test/group_vars/all.yml +++ b/inventory/test/group_vars/all.yml @@ -2,9 +2,10 @@ docker_install_compose: true docker_install_compose_plugin: true +use_helm: true +use_krew: true kubectl_ver: v1.29.3 kubectl_install_dir: /usr/bin -use_krew: true krew_install_plugins: - ctx - ns diff --git a/provision.yml b/provision.yml index 773dbfb..51d76bd 100755 --- a/provision.yml +++ b/provision.yml @@ -77,6 +77,11 @@ - semaphore tasks: + - name: Install Helm + when: use_helm | bool + ansible.builtin.include_role: + name: andrewrothstein.kubernetes_helm + - name: Install Krew when: use_krew | bool ansible.builtin.include_role: diff --git a/roles/requirements.yml b/roles/requirements.yml index 507718e..60321a0 100644 --- a/roles/requirements.yml +++ b/roles/requirements.yml @@ -1,5 +1,7 @@ --- roles: + - src: andrewrothstein.kubernetes_helm + version: 3.0.17 - src: andrewrothstein.krew version: v1.2.0 - src: andrewrothstein.opentofu