|
2 | 2 | - name: install | Initialize |
3 | 3 | set_fact: |
4 | 4 | scale_hdfs_url: "" |
| 5 | + gpgcheck: "yes" |
5 | 6 |
|
6 | | -- name: install | hdfs path |
| 7 | +- name: install | Disable gpg check |
7 | 8 | set_fact: |
8 | | - scale_hdfs_url: 'hdfs_rpms/rhel7/hdfs_3.1.1.x/' |
| 9 | + gpgcheck: "no" |
| 10 | + when: scale_version < '5.0.4.0' |
| 11 | + |
| 12 | +- name: install | hdfs path on rhel7 |
| 13 | + set_fact: |
| 14 | + scale_hdfs_url: "{{ hdfs_rpm_path_rhel }}" |
9 | 15 | when: ansible_distribution in scale_rhel_distribution and ansible_distribution_major_version == '7' |
10 | 16 |
|
11 | | -- name: install | hdfs path |
| 17 | +- name: install | hdfs path on rhel8 |
12 | 18 | set_fact: |
13 | | - scale_hdfs_url: 'hdfs_rpms/rhel7/hdfs_3.1.1.x/' |
| 19 | + scale_hdfs_url: "{{ hdfs_rpm_path_rhel }}" |
14 | 20 | when: ansible_distribution in scale_rhel_distribution and ansible_distribution_major_version == '8' |
15 | 21 |
|
16 | | -- name: install | hdfs path |
| 22 | +- name: install | hdfs path on sles15 |
17 | 23 | set_fact: |
18 | | - scale_hdfs_url: 'hdfs_rpms/rhel7/hdfs_3.1.1.x/' |
| 24 | + scale_hdfs_url: "{{ hdfs_rpm_path_sles }}" |
19 | 25 | when: ansible_distribution in scale_sles_distribution and ansible_distribution_major_version >= '15' |
20 | 26 |
|
21 | | -- name: install | hdfs path |
| 27 | +- name: install | hdfs path on ubuntu20 |
22 | 28 | set_fact: |
23 | | - scale_hdfs_url: 'hdfs_debs/ubuntu/hdfs_3.1.1.x/' |
24 | | - when: ansible_distribution in scale_ubuntu_distribution and ansible_distribution_major_version >= '20' |
| 29 | + scale_hdfs_url: "{{ hdfs_rpm_path_ubuntu }}" |
| 30 | + when: ansible_distribution in scale_ubuntu_distribution and ansible_distribution_major_version == '20' |
| 31 | + |
| 32 | + |
| 33 | +- debug: |
| 34 | + var: scale_hdfs_url |
25 | 35 |
|
26 | 36 | - name: install | Configure hdfs YUM repository |
27 | 37 | yum_repository: |
28 | 38 | name: spectrum-scale-hdfs |
29 | 39 | description: IBM Spectrum Scale (hdfs) |
30 | 40 | baseurl: "{{ scale_install_repository_url }}{{ scale_hdfs_url }}" |
31 | | - gpgcheck: "{{ scale_install_gpgcheck }}" |
| 41 | + gpgcheck: "{{ gpgcheck }}" |
32 | 42 | repo_gpgcheck: no |
33 | 43 | sslverify: no |
34 | 44 | state: present |
|
0 commit comments