Skip to content

Instantly share code, notes, and snippets.

@tkuennen
Last active September 13, 2022 17:28
Show Gist options
  • Save tkuennen/7b1bb8fb6590482cf9476cc200b65032 to your computer and use it in GitHub Desktop.
Save tkuennen/7b1bb8fb6590482cf9476cc200b65032 to your computer and use it in GitHub Desktop.
- hosts: all
become: true
become_user: root
gather_facts: False
tasks:
- name: 1. Adding Intel® oneAPI repository key
shell:
cmd: wget -O- https://apt.repos.intel.com/intel-gpg-keys/GPG-PUB-KEY-INTEL-SW-PRODUCTS.PUB | gpg --dearmor | sudo tee /usr/share/keyrings/oneapi-archive-keyring.gpg > /dev/null
- name: 2. Adding Intel® oneAPI repository
shell:
cmd: echo "deb [signed-by=/usr/share/keyrings/oneapi-archive-keyring.gpg] https://apt.repos.intel.com/oneapi all main" | sudo tee /etc/apt/sources.list.d/oneAPI.list
- name: 3. Insalling Intel OneAPI Basekit
apt: name=intel-basekit state=latest
- name: 4. Insalling Intel OneAPI HPCkit
apt: name=intel-hpckit state=latest
- name: 5. Installing Intel OneAPI AIkit
apt: name=intel-aikit state=latest
- name: 6. Installing Intel OneAPI IoTkit
apt: name=intel-iotkit state=latest
- name: 7. 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