What issue are you running into that is requiring you to blacklist nouveau specifically in the playbook?
After installing the NVIDIA driver packages (either from the Ubuntu repos, or using the cuda-drivers package), nouveau should be blacklisted by the package install.
I checked this by installing each package on a test host and running modprobe --showconfig | grep nouveau, which in each case showed the module as blacklisted.
What issue are you running into that is requiring you to blacklist
nouveau
specifically in the playbook?After installing the NVIDIA driver packages (either from the Ubuntu repos, or using the
cuda-drivers
package),nouveau
should be blacklisted by the package install.I checked this by installing each package on a test host and running
modprobe --showconfig | grep nouveau
, which in each case showed the module as blacklisted.