Commit 24287bb5 authored by David Desscan's avatar David Desscan
Browse files

prometheus-dcgm exporter installation

parent fdba9c44
---
# tasks file for ansible_gpu_exporter
- name: Install deb package requirements
apt:
deb: https://{{ s3_base_url }}/datacenter-gpu-manager_1.7.2_amd64.deb
- name: Check montools temp folder
become: yes
stat:
path: "{{ tmp_montools }}"
register: montools_tmp
- name: Create montools tmp folder
file:
path: "{{ tmp_montools }}"
state: directory
mode: "0755"
when: montools_tmp.stat.exists == False
- name: check that gpu_montools.zip is not already downloaded
stat:
path: "{{ tmp_montools }}/gpu_montools.zip"
register: montools_bundle
- name: download gpu_montools
get_url:
url: "{{ s3_base_url }}/gpu_montools.zip"
dest: "{{ tmp_montools }}"
timeout: 120
when: montools_bundle.stat.exists == false
- name: unzip gpu_montools.zip
unarchive:
dest: "{{ tmp_montools }}"
src: "{{ tmp_montools }}/gpu_montools.zip"
remote_src: yes
when: installed_matlab.stat.exists == False
- name: Install target as root
make:
chdir: "{{ tmp_montools }}"
target: install
file: "{{ tmp_montools }}/Makefile"
become: yes
- name: enable and start prometheus-dcgm.service
systemd:
name: prometheus-dcgm.service
state: started
enabled: yes
Markdown is supported
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