|
1 | 1 | ---
|
2 |
| -- name: Download OpenShift Installer (fips=false). |
| 2 | +- name: Download OpenShift Installer (fips=false) |
3 | 3 | ansible.builtin.get_url:
|
4 |
| - url: "{{ abi.ocp_installer_url }}{{ abi.ocp_installer_version }}/openshift-install-linux.tar.gz" |
5 |
| - dest: /tmp |
6 |
| - mode: '640' |
| 4 | + url: "{{ abi.ocp_installer_base_url }}/{{ abi.architecture | lower }}/clients/ocp/{{ abi.ocp_installer_version }}/{{ 's390x/' if abi.architecture | lower == 'multi' else '' }}{{ ocp_install_tgz }}" |
| 5 | + dest: "/tmp/{{ ocp_install_tgz }}" |
| 6 | + mode: '0640' |
7 | 7 | validate_certs: false
|
8 | 8 | when: not install_config_vars.fips
|
9 | 9 |
|
10 |
| -- name: Download OpenShift Installer (fips=true). |
| 10 | +- name: Download OpenShift Installer (fips=true) |
11 | 11 | ansible.builtin.get_url:
|
12 |
| - url: "{{ abi.ocp_installer_url }}{{ abi.ocp_installer_version }}/{{ ocp_install_fips_tgz }}-{{ install_config_vars.control.architecture }}.tar.gz" |
13 |
| - dest: /tmp |
14 |
| - mode: '640' |
| 12 | + url: "{{ abi.ocp_installer_base_url }}/{{ abi.architecture | lower }}/clients/ocp/{{ abi.ocp_installer_version }}/{{ 's390x/' if abi.architecture | lower == 'multi' else '' }}{{ ocp_install_fips_tgz }}-{{ install_config_vars.control.architecture | lower }}.tar.gz" |
| 13 | + dest: "/tmp/{{ ocp_install_fips_tgz }}-{{ install_config_vars.control.architecture | lower }}.tar.gz" |
| 14 | + mode: '0640' |
15 | 15 | validate_certs: false
|
16 | 16 | when: install_config_vars.fips
|
17 | 17 |
|
18 |
| -- name: Extract & Unzip Downloaded OpenShift Installer tar file on Remote (fips=false) |
| 18 | +- name: Extract OpenShift Installer (fips=false) |
19 | 19 | ansible.builtin.unarchive:
|
20 |
| - src: /tmp/openshift-install-linux.tar.gz |
| 20 | + src: "/tmp/{{ ocp_install_tgz }}" |
21 | 21 | dest: /usr/local/bin
|
22 | 22 | remote_src: true
|
23 | 23 | when: not install_config_vars.fips
|
24 | 24 |
|
25 |
| -- name: Extract & Unzip Downloaded OpenShift Installer tar file on Remote (fips=true) |
| 25 | +- name: Extract OpenShift Installer (fips=true) |
26 | 26 | ansible.builtin.unarchive:
|
27 |
| - src: /tmp/{{ ocp_install_fips_tgz }}-{{ install_config_vars.control.architecture }}.tar.gz |
| 27 | + src: "/tmp/{{ ocp_install_fips_tgz }}-{{ install_config_vars.control.architecture | lower }}.tar.gz" |
28 | 28 | dest: /usr/local/bin
|
29 | 29 | remote_src: true
|
30 | 30 | when: install_config_vars.fips
|
31 | 31 |
|
32 |
| -- name: Download OpenShift Client. |
| 32 | +- name: Download OpenShift Client |
33 | 33 | ansible.builtin.get_url:
|
34 |
| - url: "{{ ocp_download_url }}{{ ocp_client_tgz }}" |
35 |
| - dest: "/tmp/" |
36 |
| - mode: "0755" |
| 34 | + url: "{{ abi.ocp_installer_base_url }}/{{ abi.architecture | lower }}/clients/ocp/{{ abi.ocp_installer_version }}/{{ 's390x/' if abi.architecture | lower == 'multi' else '' }}{{ ocp_client_tgz }}" |
| 35 | + dest: "/tmp/{{ ocp_client_tgz }}" |
| 36 | + mode: '0755' |
| 37 | + validate_certs: false |
37 | 38 |
|
38 |
| -- name: Extract & Unzip Downloaded OpenShift Client tar file on Remote |
| 39 | +- name: Extract OpenShift Client |
39 | 40 | ansible.builtin.unarchive:
|
40 |
| - src: "{{ ocp_download_url }}{{ ocp_client_tgz }}" |
| 41 | + src: "/tmp/{{ ocp_client_tgz }}" |
41 | 42 | dest: /usr/local/bin
|
42 | 43 | remote_src: true
|
43 | 44 |
|
|
0 commit comments