Commit bacca6cb authored by Emmanuel Jaep's avatar Emmanuel Jaep
Browse files

test add CUDA installation

parent 1f628ab8
......@@ -247,3 +247,15 @@
path: /root/.custom_packages_already_installed
state: touch
when: custom_packages_installed.stat.exists == false
# CUDA
- name: generate the script that will install CUDA upon reboot
ansible.builtin.template:
src: "templates/rc.local"
dest: /etc/rc.local
owner: root
group: root
mode: 0755
- name: schedule the reboot of the machine to install CUDA
shell: "sleep 10 && reboot &"
#!/bin/sh -e
FLAG="/var/log/firstboot.cuda.log"
if [ ! -f $FLAG ]; then
touch $FLAG
curl -s http://install.iccluster.epfl.ch/scripts/soft/cuda/cuda_10.1.168_418.67.sh >> /tmp/cuda.sh ; chmod +x /tmp/cuda.sh; /tmp/cuda.sh;
fi
FLAGSCRATCH="/var/log/firstboot.scratch.log"
if [ ! -f $FLAGSCRATCH ]; then
touch $FLAGSCRATCH
chmod 775 /scratch
chown root:dlab_AppGrpU /scratch
fi
exit 0
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment