Skip to content

Instantly share code, notes, and snippets.

@tkuennen
Last active July 26, 2023 19:03
Show Gist options
  • Save tkuennen/ad867e81a03efa7b7c38a02c4ac93801 to your computer and use it in GitHub Desktop.
Save tkuennen/ad867e81a03efa7b7c38a02c4ac93801 to your computer and use it in GitHub Desktop.
Installs Intel OneAPI (Written for RHEL/CentOS/ALMA/Rocky)
- hosts: localhost
become: true
become_user: root
gather_facts: False
tasks:
- name: 1. Adding Intel® oneAPI repository
yum_repository:
name: OneAPI
description: Intel® oneAPI repository
baseurl: https://yum.repos.intel.com/oneapi
gpgcheck: yes
gpgkey: https://yum.repos.intel.com/intel-gpg-keys/GPG-PUB-KEY-INTEL-SW-PRODUCTS.PUB
- name: 2. Insalling Intel OneAPI Basekit
yum: name=intel-basekit state=latest
- name: 3. Insalling Intel OneAPI HPCkit
yum: name=intel-hpckit state=latest
- name: 4. Installing Intel OneAPI AIkit
yum: name=intel-aikit state=latest
- name: 5. Installing Intel OneAPI IoTkit
yum: name=intel-iotkit state=latest
- name: 6. Adding modules to the system
ansible.builtin.shell: echo "/opt/intel/oneapi/modulefiles" >> /usr/share/Modules/init/.modulespath
args:
executable: /bin/bash
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment