Adding custom facts
The setup module in Ansible automatically discovers a standard set of facts about each host. If you want to add custom values to your facts, you can write a custom facts module, set temporary facts with aansible.builtin.set_facttask, or provide permanent custom facts using the facts.d directory.