ansible/roles/nvidia/tasks/main.yml

48 lines
979 B
YAML
Raw Normal View History

2021-11-16 15:23:42 +00:00
---
- name: Install nvidia CUDA for cli monitoring tools
dnf:
name:
- xorg-x11-drv-nvidia-cuda
2024-02-02 15:40:15 +00:00
become: yes
- name: Install nvtop dependencies
dnf:
name:
- libdrm-devel
- ncurses-devel
- cmake
- gcc-c++
become: yes
- name: Clone syllo/nvtop
git:
repo: 'https://github.com/syllo/nvtop.git'
version: master
dest: ~/.cache/syllo-nvtop
- name: Create nvtop build dir
file:
dest: ~/.cache/syllo-nvtop/build
mode: '0755'
state: directory
- name: Cmake the nvtop Makefiles
command:
chdir: ~/.cache/syllo-nvtop/build
cmd: cmake .. -DNVIDIA_SUPPORT=ON
creates: ~/.cache/syllo-nvtop/build/Makefile
- name: Make all the nvtop things
command:
chdir: ~/.cache/syllo-nvtop/build
cmd: make
creates: ~/.cache/syllo-nvtop/build/src/nvtop
- name: make install nvtop
command:
chdir: /home/jonathan/.cache/syllo-nvtop/build
cmd: make install
creates: /usr/local/bin/nvtop
become: yes