How to install ZFS on rocky 8.6 minimal

I am using the following documentation to install ZFS on Rocky Linux 8.6

https://openzfs.github.io/openzfs-docs/Getting%20Started/RHEL-based%20distro/RHEL%208-based%20distro%20Root%20on%20ZFS/1-preparation.html

but the last step fails as follow:

[root@node1 modules]#  modprobe zfs
modprobe: FATAL: Module zfs not found in directory /lib/modules/4.18.0-372.9.1.el8.x86_64

[root@node1 modules]# cat /etc/os-release
NAME="Rocky Linux"
VERSION="8.6 (Green Obsidian)"
ID="rocky"
ID_LIKE="rhel centos fedora"
VERSION_ID="8.6"
PLATFORM_ID="platform:el8"
PRETTY_NAME="Rocky Linux 8.6 (Green Obsidian)"
ANSI_COLOR="0;32"
CPE_NAME="cpe:/o:rocky:rocky:8:GA"
HOME_URL="https://rockylinux.org/"
BUG_REPORT_URL="https://bugs.rockylinux.org/"
ROCKY_SUPPORT_PRODUCT="Rocky Linux"
ROCKY_SUPPORT_PRODUCT_VERSION="8"
REDHAT_SUPPORT_PRODUCT="Rocky Linux"
REDHAT_SUPPORT_PRODUCT_VERSION="8"

Did you install the repo and then install the packages?

yes, just as in the procedure in the link

Just verified that if I reboot the system, then modprobe zfs works.
However, it’s really bad that I have to reboot, cause I use salt to install a number of system

That sounds like either the module was not compiled for currently running kernel and you did boot to the one that got the module, or that the kernel module build occurs during boot.