Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion meta/runtime.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
# Collections must specify a minimum required ansible version to upload
# to galaxy
requires_ansible: ">=2.15.0,<=2.21.99"
requires_ansible: ">=2.15.0,<=2.22.99"

# Content that Ansible needs to load from another location or that has
# been deprecated/removed
Expand Down
12 changes: 5 additions & 7 deletions roles/nvidia_dcgm_exporter/tasks/install.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,15 +59,13 @@
version: "{{ nvidia_dcgm_exporter_version }}"
delegate_to: localhost

- name: Compile dcgm-exporter binary
- name: Compile dcgm-exporter binary using go build
become: false
run_once: true
community.general.make:
chdir: /tmp/nvidia_dcgm_exporter
target: binary
params:
GO: /tmp/go/bin/go
GOLANG_VERSION: "{{ _golang_version }}"
ansible.builtin.command: /tmp/go/bin/go build -ldflags "-X main.BuildVersion={{ nvidia_dcgm_exporter_version }}" -trimpath
args:
chdir: /tmp/nvidia_dcgm_exporter/cmd/dcgm-exporter
creates: /tmp/nvidia_dcgm_exporter/cmd/dcgm-exporter/dcgm-exporter
delegate_to: localhost
environment:
PATH: "/tmp/go/bin:{{ ansible_env.PATH }}"
Expand Down
Loading