Skip to content

create_host_tagged

Go to Automation

View in GitLab

Description

Create address objects for hosts and assign multiple tags (device type, zone, vendor, contact, application) derived from a selected device group. The playbook creates, removes or lists host objects and updates the relevant address groups.

Credentials

  • panos_username / panos_password

Input

Variable Description
_selected_group Key from vars/devicegroups.yml to derive group/tag settings
target Comma-separated list of host FQDNs
ip_adres Comma-separated list of IP addresses (must match target length)
devicebeheeractie Toevoegen (add), Verwijderen (remove) or Oplijsten (list)
provider PANOS connection provider (from get_active_paloalto.yml)
_commit If Ja (or undefined), the handler will commit changes

Output

  • Created/removed/listed address objects for each target with tags derived from the selected device group.
  • Updated address group membership as required.
  • Optional: a firewall commit when _commit is Ja or not defined.

Dependencies