From 1a96d96f70fda2b384bbe114e436fa97c128266e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Beto=20Rodr=C3=ADguez?= <81265082+betoredhat@users.noreply.github.com> Date: Fri, 17 Nov 2023 17:00:42 -0600 Subject: [PATCH] Get the new cli (#51) --- roles/acm_hypershift/tasks/download-cli.yml | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/roles/acm_hypershift/tasks/download-cli.yml b/roles/acm_hypershift/tasks/download-cli.yml index f19eebe8f..710730040 100644 --- a/roles/acm_hypershift/tasks/download-cli.yml +++ b/roles/acm_hypershift/tasks/download-cli.yml @@ -1,19 +1,19 @@ --- -- name: Get route for hypershift-cli +- name: Get route for hcp-cli community.kubernetes.k8s_info: kind: Route - name: hypershift-cli-download + name: hcp-cli-download namespace: multicluster-engine register: ah_route until: ah_route.resources | length retries: 10 delay: 10 -- name: Download hypershift cli tarball, ignoring the certificate +- name: Download hcp cli tarball, ignoring the certificate vars: ah_arch: amd64 unarchive: - src: "https://{{ ah_route.resources[0].spec.host }}/linux/{{ ah_arch }}/hypershift.tar.gz" + src: "https://{{ ah_route.resources[0].spec.host }}/linux/{{ ah_arch }}/hcp.tar.gz" dest: "{{ ah_tmp_dir.path }}" mode: 0755 remote_src: true @@ -23,16 +23,17 @@ delay: 10 until: result is not failed -- name: Get hypershift cli version +- name: Get hcp cli version shell: cmd: > - {{ ah_tmp_dir.path }}/hypershift version + {{ ah_tmp_dir.path }}/hcp version register: result -- name: Print hypershift cli version +- name: Print hcp cli version debug: var: result.stdout -- name: Set hypershift cli path +- name: Set hcp cli path set_fact: - ah_cli_path: "{{ ah_tmp_dir.path }}/hypershift" + ah_cli_path: "{{ ah_tmp_dir.path }}/hcp" +...