Mi Wang,
I can confirm that using the tar file works just fine. That's actually the primary method I use for one customer whose systems are air-gapped.
We actually use the Ansible role to install DNF, but point at a pre-downloaded tar file.
--
Stephen L. Ulmer
Enterprise Architect
Mainline Information Systems
This e-mail and files transmitted with it are confidential, and are intended solely for the use of the individual or entity to whom this e-mail is addressed. If you are not the intended recipient, or the employee or agent responsible to deliver it to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you are not one of the named recipient(s) or otherwise have reason to believe that you received this message in error, please immediately notify sender by e-mail, and destroy the original message.