Would like to move to to https://github.com/rug-cit-hpc/pg-playbooks but has large files...
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

36 lines
763 B

---
- file:
path: /usr/local/prometheus
state: directory
mode: 0755
- name: Install smi exporter
copy:
src: "{{ playbook_dir }}/promtools/results/nvidia-exporter"
dest: /usr/local/prometheus/nvidia-exporter
mode: 0755
- name: Install service files.
template:
src: templates/nvidia-exporter.service
dest: /etc/systemd/system/nvidia-exporter.service
mode: 644
owner: root
group: root
tags:
- service-files
- name: install service files
command: systemctl daemon-reload
- name: enable service at boot
systemd:
name: nvidia-smi-exporter.service
enabled: yes
- name: make sure servcies are started.
systemd:
name: nvidia-smi-exporter.service
state: restarted
tags:
- start-service