TP-IaC-Kubernetes/roles/helm/tasks/main.yaml

30 lines
806 B
YAML

- name: install helm repo
become: yes
block:
- name: Create a /usr/share/keyrings
ansible.builtin.file:
path: /usr/share/keyrings
state: directory
mode: '0755'
- name: get asc helm
get_url:
url: https://baltocdn.com/helm/signing.asc
dest: /usr/share/keyrings/helm.asc
- name: get gpg helm
shell: cat /usr/share/keyrings/helm.asc | gpg --dearmor -o /usr/share/keyrings/helm.gpg
args:
chdir: /usr/share/keyrings
creates: /usr/share/keyrings/helm.gpg
- name: helm | apt source
ansible.builtin.apt_repository:
repo: "deb [signed-by=/usr/share/keyrings/helm.gpg] https://baltocdn.com/helm/stable/debian/ all main"
state: present
- name: install helm
ansible.builtin.apt:
pkg: helm
become: yes