create_host
Description
Create IP address objects on the active Palo Alto device for a list of hosts and add them to one or more address groups. Iterates over provided target/ip_adres pairs and invokes task includes to create objects and update groups.
Credentials
- panos_username / panos_password
Input
| Variable | Description |
|---|---|
target |
Comma-separated hostnames/FQDNs |
ip_adres |
Comma-separated IP addresses matching target order |
panos_addressgroup |
Address group(s) to add the created objects to |
panos_zone_tag |
Optional zone tag used by downstream task includes |
provider |
PANOS connection provider (from get_active_paloalto.yml) |
_commit |
If Ja (or undefined), the playbook will commit changes to the firewall |
Output
- Created or updated
ip-netmaskaddress objects for each host. - Address groups updated to include the new host objects.
- Optional: a configuration commit when
_commitisJaor not defined.