Commit 93b791da authored by nanahira's avatar nanahira

fix

parent 69f81ea4
...@@ -21,7 +21,7 @@ ...@@ -21,7 +21,7 @@
become: true become: true
apt: apt:
update_cache: true update_cache: true
name: 'git,nvidia-driver-{{ nvidia_driver_version }},nvidia-cuda-dev,nvidia-cuda-gdb,nvidia-cuda-toolkit,nvidia-cuda-toolkit-gcc,nvidia-container-runtime,libnvidia-encode-{{ nvidia_driver_version }},libnvidia-decode-{{ nvidia_driver_version }},libnvidia-fbc1-{{ nvidia_driver_version }},libnvidia-compute-{{ nvidia_driver_version }},libnvidia-gl-{{ nvidia_driver_version }}' name: 'git,nvidia-driver-{{ nvidia_driver_version }},nvidia-container-runtime,libnvidia-encode-{{ nvidia_driver_version }},libnvidia-decode-{{ nvidia_driver_version }},libnvidia-fbc1-{{ nvidia_driver_version }},libnvidia-compute-{{ nvidia_driver_version }},libnvidia-gl-{{ nvidia_driver_version }}'
install_recommends: false install_recommends: false
- name: check detailed driver version - name: check detailed driver version
changed_when: false changed_when: false
...@@ -41,23 +41,6 @@ ...@@ -41,23 +41,6 @@
check_file: libnvidia-fbc-backup/libnvidia-fbc.so check_file: libnvidia-fbc-backup/libnvidia-fbc.so
- script: patch.sh - script: patch.sh
check_file: libnvidia-encode-backup/libnvidia-encode.so check_file: libnvidia-encode-backup/libnvidia-encode.so
- name: check install of cudnn - name: cuda
find: include_tasks: nvidia_cuda.yml
paths: when: nvidia_driver_version <= 510
- /usr/lib/x86_64-linux-gnu
patterns: 'libcudnn.so.8.4.0'
register: cudnn_result
- name: purge cudnn7
become: true
apt:
name: libcudnn7,libcudnn7-dev,libcudnn7-doc
state: absent
- name: install cudnn
become: true
apt:
deb: 'https://cdn02.moecube.com:444/init/cudnn/{{item}}'
with_items:
- libcudnn8_8.4.0.27-1+cuda11.6_amd64.deb
- libcudnn8-dev_8.4.0.27-1+cuda11.6_amd64.deb
- libcudnn8-samples_8.4.0.27-1+cuda11.6_amd64.deb
when: not cudnn_result.files[0] is defined and ansible_distribution == "Ubuntu" and ansible_distribution_major_version|int >= 20
...@@ -35,7 +35,7 @@ ...@@ -35,7 +35,7 @@
blockinfile: blockinfile:
path: /etc/ssh/sshd_config path: /etc/ssh/sshd_config
block: | block: |
HostKeyAlgorithms=ssh-rsa,ssh-rsa-cert-v01@openssh.com HostKeyAlgorithms=+ssh-rsa,ssh-rsa-cert-v01@openssh.com
PubkeyAcceptedAlgorithms=+ssh-rsa,ssh-rsa-cert-v01@openssh.com PubkeyAcceptedAlgorithms=+ssh-rsa,ssh-rsa-cert-v01@openssh.com
marker: '# {mark} MyCard Init block' marker: '# {mark} MyCard Init block'
when: ansible_distribution == 'Ubuntu' and ansible_distribution_major_version|int >= 22 when: ansible_distribution == 'Ubuntu' and ansible_distribution_major_version|int >= 22
......
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