maabara/playbooks/helm/install_helm_apt.yaml

21 lines
763 B
YAML
Raw Permalink Normal View History

2024-11-14 19:21:48 +00:00
---
- name: installs helm repo and its repository on ubuntu
hosts: helm
become: true
tasks:
- name: install needed dependencies via apt
ansible.builtin.apt:
pkg:
- curl
- apt-transport-https
- name: install repository and key (not idempotent)
ansible.builtin.shell: |
curl https://baltocdn.com/helm/signing.asc | gpg --dearmor | sudo tee /usr/share/keyrings/helm.gpg > /dev/null
echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/helm.gpg] https://baltocdn.com/helm/stable/debian/ all main" | sudo tee /etc/apt/sources.list.d/helm-stable-debian.list
apt update
- name: install helm kubernetes package manager
ansible.builtin.apt:
name: helm