Skip to content

Commit

Permalink
address comments from review
Browse files Browse the repository at this point in the history
  • Loading branch information
argeiger committed Dec 4, 2024
1 parent d481de7 commit 9bdcb36
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,18 +20,13 @@
- (_github_ibm_pat | default('')) != ''
- not (cpd_airgap | bool) or not (cpd_skip_cli_downloads | default(False) | bool)

- name: Check if {{ status_dir }}/downloads/cpd-cli-linux-{{ _cpd_cli_arch }}.tar.gz exists
stat:
path: {{ status_dir }}/downloads/cpd-cli-linux-{{ _cpd_cli_arch }}.tar.gz
register: _cpd_cli_stat_result

- name: Unpack cpd-cli from {{ status_dir }}/downloads/cpd-cli-linux-{{ _cpd_cli_arch }}.tar.gz
unarchive:
src: "{{ status_dir }}/downloads/cpd-cli-linux-{{ _cpd_cli_arch }}.tar.gz"
dest: /usr/local/bin/
extra_opts:
- --strip-components=1
when: _cpd_cli_stat_result.stat.exists
when: _download_result is succeeded

- name: Get cpd-cli version
shell: |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,18 +35,13 @@
- not _helm_download.stat.exists
- not (cpd_skip_cli_downloads | default(False) | bool)

- name: Check if {{ status_dir }}/downloads/helm exists
stat:
path: {{ status_dir }}/downloads/helm
register: _helm_stat_result

- name: Copy helm executable to /usr/local/bin
copy:
src: "{{ status_dir }}/downloads/helm"
dest: "/usr/local/bin/helm"
mode: 0744
remote_src: True
when: _helm_stat_result.stat.exists
when: _helm_download.stat.exists or _download_get_helm is succeeded

- name: Get helm version
shell: |
Expand Down

0 comments on commit 9bdcb36

Please sign in to comment.