diff --git a/collections/ansible_collections/nullified/infrastructure/roles/development/tasks/main.yml b/collections/ansible_collections/nullified/infrastructure/roles/development/tasks/main.yml index 0066cde..75a3a40 100644 --- a/collections/ansible_collections/nullified/infrastructure/roles/development/tasks/main.yml +++ b/collections/ansible_collections/nullified/infrastructure/roles/development/tasks/main.yml @@ -174,53 +174,9 @@ group: root mode: '0755' -- name: '[custom] install latest Helm' - become: true - block: - - name: '[helm] find latest version available' - ansible.builtin.shell: |- - curl -sSL https://api.github.com/repos/helm/helm/releases/latest | jq -r '.tag_name' - register: latest_helm_version - changed_when: false - - - name: '[helm] find if binary is already installed' - ansible.builtin.file: - path: /usr/local/bin/helm - register: helm_stat - changed_when: false - failed_when: false - - - name: '[helm] setup temp directory' - ansible.builtin.file: - path: /tmp/helm-unarchive - state: directory - owner: root - group: root - mode: '0700' - when: helm_stat.state is match("absent") - - - name: '[helm] fetch archive' - ansible.builtin.unarchive: - remote_src: true - src: "https://get.helm.sh/helm-{{ latest_helm_version.stdout }}-linux-amd64.tar.gz" - dest: /tmp/helm-unarchive - when: helm_stat.state is match("absent") - - - name: '[helm] install binary' - ansible.builtin.copy: - remote_src: true - src: /tmp/helm-unarchive/linux-amd64/helm - dest: /usr/local/bin/helm - owner: root - group: root - mode: '0755' - when: helm_stat.state is match("absent") - - - name: '[helm] cleanup' - ansible.builtin.file: - path: /tmp/helm-unarchive - state: absent - when: helm_stat.state is match("absent") +- name: install helm + ansible.builtin.include_role: + name: nullified.infrastructure.helm - name: '[vbox] install Virtualbox' become: true