|
1 | 1 | --- |
2 | | -- name: install | Initialize |
3 | | - set_fact: |
4 | | - scale_hdfs_url: "" |
5 | | - gpgcheck: "yes" |
6 | | - |
7 | | -- name: install | Disable gpg check |
8 | | - set_fact: |
9 | | - gpgcheck: "no" |
10 | | - when: scale_version < '5.0.4.0' |
11 | | - |
12 | 2 | - name: install | hdfs path on rhel7 |
13 | 3 | set_fact: |
14 | 4 | scale_hdfs_url: "{{ hdfs_rpm_path_rhel }}" |
|
19 | 9 | scale_hdfs_url: "{{ hdfs_rpm_path_rhel }}" |
20 | 10 | when: ansible_distribution in scale_rhel_distribution and ansible_distribution_major_version == '8' |
21 | 11 |
|
22 | | -- name: install | hdfs path on sles15 |
23 | | - set_fact: |
24 | | - scale_hdfs_url: "{{ hdfs_rpm_path_sles }}" |
25 | | - when: ansible_distribution in scale_sles_distribution and ansible_distribution_major_version >= '15' |
26 | | - |
27 | | -- name: install | hdfs path on ubuntu20 |
28 | | - set_fact: |
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 | 12 | - name: install | Configure hdfs YUM repository |
34 | 13 | yum_repository: |
35 | 14 | name: spectrum-scale-hdfs |
36 | 15 | description: IBM Spectrum Scale (hdfs) |
37 | 16 | baseurl: "{{ scale_install_repository_url }}{{ scale_hdfs_url }}" |
38 | | - gpgcheck: "{{ gpgcheck }}" |
| 17 | + gpgcheck: "{{ scale_install_gpgcheck }}" |
39 | 18 | repo_gpgcheck: no |
40 | 19 | sslverify: no |
41 | 20 | state: present |
|
44 | 23 | - ansible_pkg_mgr == 'yum' or ansible_pkg_mgr == 'dnf' |
45 | 24 | - scale_install_repository_url != 'existing' |
46 | 25 |
|
47 | | -- name: install | Configure hdfs zypper repository |
48 | | - zypper_repository: |
49 | | - name: spectrum-scale-hdfs-rpms |
50 | | - repo: "{{ scale_install_repository_url }}{{ scale_hdfs_url }}" |
51 | | - runrefresh: yes |
52 | | - state: present |
53 | | - disable_gpg_check: yes |
54 | | - when: |
55 | | - - ansible_pkg_mgr == 'zypper' |
56 | | - - scale_install_repository_url != 'existing' |
57 | | - |
58 | | -- name: install | Configure hdfs APT repository |
59 | | - apt_repository: |
60 | | - filename: spectrum-scale-hdfs-debs |
61 | | - repo: "deb [trusted=yes] {{ scale_install_repository_url }}{{ scale_hdfs_url }} ./" |
62 | | - validate_certs: no |
63 | | - state: present |
64 | | - update_cache: yes |
65 | | - codename: IBM Spectrum Scale (HDFS debs) |
66 | | - mode: 0777 |
67 | | - when: |
68 | | - - ansible_pkg_mgr == 'apt' |
69 | | - - scale_install_repository_url != 'existing' |
70 | | - |
71 | 26 | - name: install | Add GPFS hdfs packages to list |
72 | 27 | set_fact: |
73 | 28 | scale_install_all_packages: "{{ scale_install_all_packages + [ hdfs_packages ] }}" |
|
0 commit comments