install helm

master
Michael Wilson 3 years ago
parent 9c4ecf4d4a
commit 761471f12e
  1. 18
      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 }}"

Loading…
Cancel
Save