diff --git a/ansible/node-gpu.yml b/ansible/node-gpu.yml new file mode 100644 index 0000000000000000000000000000000000000000..005f0afc57f3a3a2a41cdf43f9d2b0cf5563d141 --- /dev/null +++ b/ansible/node-gpu.yml @@ -0,0 +1,6 @@ +--- +- name: Setup node for use as a cluster host with gpu packages + hosts: default + become: true + roles: + - cheaha.node diff --git a/ansible/roles/cheaha.node/tasks/main.yml b/ansible/roles/cheaha.node/tasks/main.yml index 9397ba93d2de42fe081026b8538a86003e74dbfd..e30ca993c96baa4c8f885cd5b0b2b356387881d7 100644 --- a/ansible/roles/cheaha.node/tasks/main.yml +++ b/ansible/roles/cheaha.node/tasks/main.yml @@ -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 }