From 761471f12eb2ee83ee1ca322bba83bb501dea925 Mon Sep 17 00:00:00 2001 From: Michael Wilson Date: Mon, 31 Oct 2022 20:48:02 +0100 Subject: [PATCH] install helm --- linux/k3s/ansible_setup/tasks/main.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/linux/k3s/ansible_setup/tasks/main.yml b/linux/k3s/ansible_setup/tasks/main.yml index 4975596..805b75d 100644 --- a/linux/k3s/ansible_setup/tasks/main.yml +++ b/linux/k3s/ansible_setup/tasks/main.yml @@ -1,3 +1,21 @@ +- name: Add helm repo + block: + - name: download helm repo key + ansible.builtin.get_url: + url: https://baltocdn.com/helm/signing.asc + dest: /etc/apt/trusted.gpg.d/helm.asc + + - name: add helm repo as apt source + ansible.builtin.apt_repository: + repo: "deb [arch={{ helm_repo_arch }} signed-by=/etc/apt/trusted.gpg.d/helm.asc] https://baltocdn.com/helm/stable/debian/ all main" + state: present + register: sources_update + +- name: Update apt-cache + ansible.builtin.apt: + update_cache: yes + when: sources_update.changed + - name: Install or update required packages package: name: "{{ item }}"