NVidia 470 driver under Rocky Linux 8.x and 9.x

Hi there,

Here’s my Ansible role rh_nvidia_470xx to handle a bunch of client PCs with old NVidia GeForce GT710 cards.

- name: Install the proprietary NVidia 470.xx driver
  ansible.builtin.dnf:
    name: akmod-nvidia-470xx
  when:
    - ansible_distribution_major_version == "8"

- name: Install the proprietary NVidia 470.xx driver
  ansible.builtin.dnf:
    name: kmod-nvidia-470xx
    disablerepo: rpmfusion-nonfree
    enablerepo: elrepo-testing
  when:
    - ansible_distribution_major_version == "9"

Any thoughts or suggestions ?

Cheers,

Niki