Skip to content

Commit

Permalink
Merge pull request #40 from valiyvvv/master
Browse files Browse the repository at this point in the history
fixes checksum check
  • Loading branch information
VilleS1 authored Aug 9, 2021
2 parents e66eda6 + 421ef99 commit e788807
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tasks/install_runfile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
- name: "Check NVIDIA kernel module"
find:
path: "/lib/modules/{{ cuda_driver_kernel_version }}"
patterns: nvidia.ko
patterns: nvidia.ko.xz
recurse: true
register: cuda_driver_kernel_module_find

Expand Down Expand Up @@ -67,17 +67,17 @@
when: cuda_runfile_checksum

- name: Get checksums from file
community.general.read_csv:
read_csv:
path: /tmp/cuda_checksum.tsv
delimiter: " "
fieldnames: checksum, file
fieldnames: checksum,file
key: file
register: checksums
when: cuda_runfile_checksum

- name: Get checksums from dict
set_fact:
cuda_runfile_valid_checksum: "{{checksums[ cuda_runfile_sh ].checksum}}" == cuda_runtime_file.stat.checksum
cuda_runfile_valid_checksum: "{{checksums.dict[ cuda_runfile_sh ].checksum}} == cuda_runtime_file.stat.checksum"
when: cuda_runtime_file.stat.exists


Expand Down

0 comments on commit e788807

Please sign in to comment.