Skip to content
Snippets Groups Projects
Commit 657cdd75 authored by Chris King's avatar Chris King
Browse files

Changes to the base slurm image; start of gpu yaml

parent e0914741
No related branches found
No related tags found
No related merge requests found
---
- name: Setup node for use as a cluster host with gpu packages
hosts: default
become: true
roles:
- cheaha.node
......@@ -75,6 +75,7 @@
- { path: /home, src: "gpfs.rc.uab.edu:/data/user/home", fstype: nfs, opts: _netdev,defaults }
- { path: /data/project, src: "gpfs.rc.uab.edu:/data/project", fstype: nfs, opts: _netdev,defaults }
- { path: /data/user, src: "gpfs.rc.uab.edu:/data/user", fstype: nfs, opts: _netdev,defaults }
- { path: /data/rc/apps, src: "gpfs.rc.uab.edu:/data/rc/apps", fstype: nfs, opts: _netdev,defaults }
- name: Add ssh key for root access
ansible.posix.authorized_key:
user: root
......@@ -121,10 +122,16 @@
loop:
- { dir: /local, mode: '0777' }
- { dir: /scratch, mode: '0755' }
- name: Create symbolic link from /scratch/local to /local
- { dir: /share, mode: '0755' }
- { dir: /data/rc/apps, mode: '0755' } # this is only required for the symlink to be happy
- name: Create symbolic links
ansible.builtin.file:
src: /local
dest: /scratch/local
src: "{{ item.src }}"
dest: "{{ item.dest }}"
owner: root
group: root
force: yes
state: link
loop:
- { src: /local, dest: /scratch/local }
- { src: /share/apps, dest: /data/rc/apps }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment