Kickstart post install script examples in RHEL CentOS 7 8
We use Kickstart to perform automated installation with Red Hat/CentOS and Fedora (or any other OS using Red Hat's environment). You have the option of adding commands to run on the system once the installation