add_new_host
Description
Create new host records in Infoblox from a list of MAC addresses and hostnames, resolve naming conflicts, allocate IPs from DHCP ranges, update existing records when needed, and optionally add the new hosts to Palo Alto (device) and Panorama. Produces a CSV summary of created hosts and can commit changes to PA/Panorama.
Credentials
- Infoblox_username/password
- panos_username/password
- gitlab SSH keys
Input
| Variable | Description |
|---|---|
mac_address_list |
Comma-separated MAC addresses for the new hosts |
hostnames_list |
Comma-separated hostnames or aliases to create |
device_type |
Device type key used to lookup site/segment and domain behavior in device_types.yml |
site_name |
Site identifier used to query Infoblox networks and DHCP ranges |
infoblox_username, infoblox_password |
Credentials for Infoblox WAPI access |
gitlab_pubkey, gitlab_privkey |
SSH keys used to clone/update device type repository (optional) |
panos_username, panos_password, panorama_url |
Credentials and target for adding hosts to Panorama/PA |
pano |
yes/no — add hosts to Panorama when yes |
commit |
yes/no — commit changes to Palo Alto/Panorama when yes |
CA_PA5430_url, CPF_PA5430_url |
PA device URLs used when adding hosts directly to PA (optional) |
infoblox_comment |
Comma-separated comments passed when creating records (optional) |
Output
- Created or updated Infoblox host records (via WAPI or nios modules).
host_info_csv: CSV string summarizingdevice_name,ipv4address,mac,comment,aliasesprinted to playbook output.- Optional: address/host objects added to Panorama or Palo Alto and commits applied when requested.
- DHCP service restart on Infoblox may be triggered if required.