|
|
|
@ -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 |
|
|
|
- name: Install or update required packages |
|
|
|
package: |
|
|
|
package: |
|
|
|
name: "{{ item }}" |
|
|
|
name: "{{ item }}" |
|
|
|
|