Foreman facts on second ethernet IP address

Hi Experts,

I am testing out the ansible provisioning call back in Foreman. One question, how can I also propulate the second nic IP address into the fact? I am only seeing foreman_ip (first nic IP address) in the fact… Thanks.

{
“foreman_architecture_id”: 1,
“foreman_architecture_name”: “x86_64”,
“foreman_bmc_available”: false,
“foreman_build”: false,
“foreman_build_status”: 0,
“foreman_build_status_label”: “Installed”,
“foreman_capabilities”: [
“build”
],
“foreman_certname”: “xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx”,
“foreman_cockpit_url”: null,
“foreman_comment”: “”,
“foreman_compute_profile_id”: null,
“foreman_compute_profile_name”: null,
“foreman_compute_resource_id”: null,
“foreman_compute_resource_name”: null,
“foreman_compute_resource_provider”: null,
“foreman_content_facet_attributes”: {
“applicable_deb_count”: 0,
“applicable_module_stream_count”: 0,
“applicable_package_count”: 6,
“content_source”: {
“id”: 2,
“name”: “xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx”,
“url”: “https:/xxxxxxxxxxxxxxxxxxxxxxxxx:9090”
},
“content_source_id”: 2,
“content_source_name”: “xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx”,
“content_view”: {
“composite”: false,
“id”: 5,
“name”: “RHEL 9”
},
“content_view_environments”: [
{
“content_view”: {
“composite”: false,
“id”: 5,
“name”: “RHEL 9”
},
“lifecycle_environment”: {
“id”: 24,
“name”: “RHEL9_Dev”
}
}
],
“errata_counts”: {
“applicable”: {
“bugfix”: 0,
“enhancement”: 0,
“security”: 0,
“total”: 0
},
“bugfix”: 0,
“enhancement”: 0,
“security”: 0,
“total”: 0
},
“id”: 66,
“kickstart_repository”: null,
“kickstart_repository_id”: null,
“kickstart_repository_name”: null,
“lifecycle_environment”: {
“id”: 24,
“name”: “RHEL9_Dev”
},
“upgradable_deb_count”: 0,
“upgradable_module_stream_count”: 0,
“upgradable_package_count”: 0,
“uuid”: “1a362cfa-a”
},
“foreman_created_at”: “2025-02-11 18:49:53 UTC”,
“foreman_creator”: “Admin User”,
“foreman_creator_id”: 4,
“foreman_disk”: “”,
“foreman_display_name”: “xxxxxxxxxxxxxxxxxxxxxxxxxxxxx”,
“foreman_domain_id”: 1,
“foreman_domain_name”: “xxxxxxxxxxxxxxxxxxxxxxxxx”,
“foreman_enabled”: true,
“foreman_errata_status”: 1,
“foreman_errata_status_label”: “No installed packages and/or enabled repositories have been reported by subscription-manager.”,
“foreman_execution_status”: 0,
“foreman_execution_status_label”: “Last execution succeeded”,
“foreman_global_status”: 1,
“foreman_global_status_label”: “Warning”,
“foreman_hostgroup_id”: 3,
“foreman_id”: 67,
“foreman_image_file”: “”,
“foreman_image_id”: null,
“foreman_image_name”: null,
“foreman_initiated_at”: “2025-02-27 00:30:10 UTC”,
“foreman_installed_at”: “2025-02-20 01:14:00 UTC”,
“foreman_ip”: “xxxxxxxxxxxxxxx”,
“foreman_ip6”: “”,
“foreman_last_compile”: “2025-02-26 17:24:32 UTC”,
“foreman_last_report”: null,
“foreman_location_id”: 2,
“foreman_location_name”: “Default Location”,
“foreman_mac”: “xxxxxxxxxxxxxxxxxxxx”,
“foreman_managed”: true,
“foreman_medium_id”: 16,
“foreman_medium_name”: “RHEL”,
“foreman_model_id”: 1,
“foreman_model_name”: “VMware20,1”,
“foreman_operatingsystem_id”: 1,
“foreman_operatingsystem_name”: “RHEL 9.4”,
“foreman_organization_id”: 1,
“foreman_organization_name”: “Default Organization”,
“foreman_owner_id”: 5,
“foreman_owner_name”: " ",
“foreman_owner_type”: “User”,
“foreman_provision_method”: “build”,
“foreman_ptable_id”: 220,
“foreman_ptable_name”: “Kickstart”
“foreman_puppet_ca_proxy”: null,
“foreman_puppet_ca_proxy_id”: null,
“foreman_puppet_ca_proxy_name”: null,
“foreman_puppet_proxy”: null,
“foreman_puppet_proxy_id”: null,
“foreman_puppet_proxy_name”: null,
“foreman_puppet_status”: 0,
“foreman_pxe_loader”: “Grub2 UEFI”,
“foreman_realm_id”: null,
“foreman_realm_name”: null,
“foreman_sp_ip”: null,
“foreman_sp_mac”: null,
“foreman_sp_name”: null,
“foreman_sp_subnet_id”: null,
“foreman_subnet6_id”: null,
“foreman_subnet6_name”: null,
“foreman_subnet_id”: 1,
“foreman_subnet_name”: “RHEL 9 Provisioning”,
“foreman_subscription_facet_attributes”: {
“autoheal”: true,
“hypervisor”: false,
“id”: 88,
“last_checkin”: “2025-02-27 00:33:40 UTC”,
“purpose_addons”: ,
“purpose_role”: “”,
“purpose_usage”: “”,
“registered_at”: “2025-02-27 00:33:39 UTC”,
“registered_through”: “xxxxxxxxxxxxxxxxxxxxxxxxxxxx”,
“release_version”: null,
“service_level”: “”,
“user”: null,
“uuid”: “xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx”
},
“foreman_updated_at”: “2025-02-27 23:46:37 UTC”,
“foreman_use_image”: null,
“foreman_uuid”: null
}