This commit is contained in:
2024-07-08 12:26:06 -04:00
parent b78e8e4242
commit 6948b9baa8
47 changed files with 1142 additions and 79 deletions

View File

@@ -10,7 +10,6 @@
become: yes
apt:
update_cache: yes
when: nvidia == true
- name: Install Linux headers
apt:
@@ -25,11 +24,8 @@
- firmware-misc-nonfree
- nvidia-cuda-dev
- nvidia-cuda-toolkit
register: install_driver
- name: Rebooting the system
ansible.builtin.reboot:
- name: Wait for SSH connection
ansible.builtin.wait_for_connection:
timeout: 300
- name: Reboot after driver install
reboot:
when: install_driver.changed and not nvidia_driver_skip_reboot