#  Copyright 2020 Dell Inc. or its subsidiaries. All Rights Reserved.
#
#  Licensed under the Apache License, Version 2.0 (the "License");
#  you may not use this file except in compliance with the License.
#  You may obtain a copy of the License at
#
#      http://www.apache.org/licenses/LICENSE-2.0
#
#  Unless required by applicable law or agreed to in writing, software
#  distributed under the License is distributed on an "AS IS" BASIS,
#  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
#  See the License for the specific language governing permissions and
#  limitations under the License.
---
# intel_tools.yml: Install Intel-branded tools

# Install the Intel Parallel Studio XE Runtime repository and packages
- hosts: cluster
  tasks:
  - name: Import the Intel(R) Parallel Studio XE Runtime Repo GPG Key
    rpm_key:
      state: present
      key: https://yum.repos.intel.com/2020/setup/RPM-GPG-KEY-intel-psxe-runtime-2020
  - name: Enable the Intel(R) Parallel Studio XE Runtime Repository
    package:
      name: https://yum.repos.intel.com/2020/setup/intel-psxe-runtime-2020-reposetup-1-0.noarch.rpm
      state: present
  - name: Install Intel(R) Parallel Studio XE Runtime 2020
    package:
      name: intel-psxe-runtime
      state: present

# Install the Intel Cluster Checker
- hosts: cluster
  tasks:
  - name: Import the Intel(R) Cluster Checker Repo GPG Key
    rpm_key:
      state: present
      key: https://yum.repos.intel.com/intel-gpg-keys/GPG-PUB-KEY-INTEL-SW-PRODUCTS-2019.PUB
  - name: Enable the Intel(R) Cluster Checker Repository
    yum_repository:
      name: intel-clck-2019-repo
      description: Intel(R) Cluster Checker 2019
      baseurl: https://yum.repos.intel.com/clck/2019
      gpgcheck: yes
      gpgkey: https://yum.repos.intel.com/clck/2019/setup/PUBLIC_KEY.PUB
  - name: Enable the Intel(R) Cluster Checker Extensions Repository
    yum_repository:
      name: intel-clck-ext-2019-repo
      description: Intel(R) Cluster Checker Select Solutions Extensions 2019
      baseurl: https://yum.repos.intel.com/clck-ext/2019
      gpgcheck: yes
      gpgkey: https://yum.repos.intel.com/clck-ext/2019/setup/PUBLIC_KEY.PUB
  - name: Install the Intel(R) Cluster Checker
    package:
      name: intel-clck-2019.8-*
      state: present
