Skip to content

Instantly share code, notes, and snippets.

Last active January 17, 2023 19:05
What would you like to do?
Part of a windows ansible role
- name: Create C:\TEMP directory
win_file: path='C:\TEMP' state=directory
- name: Download OneApi2021.4
script: |
az storage file download --account-name xxxxxxx --account-key {{ key }} --share-name ansible-files --path "w_BaseKit_p_2021.4.0.3421_offline.exe" --dest "C:\TEMP\w_BaseKit_p_2021.4.0.3421_offline.exe" --output none
- name: Add compatibility mode registry setting
path: HKCU:\Software\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\Layers
name: C:\TEMP\w_BaseKit_p_2021.4.0.3421_offline.exe
data: 'WIN8RTM'
- name: Install Intel OneApi 2021.4
path: C:\TEMP\w_BaseKit_p_2021.4.0.3421_offline.exe
- -s
- -a
- --silent
- --eula
- accept
creates_path: 'C:\Program Files (x86)\Intel\oneAPI'
state: present
- name: Add INTEL_FORTRAN_PATH env var
state: present
value: C:\Program Files (x86)\Intel\oneAPI\compiler\2022.2.0\windows
level: machine
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment