BuildTheNet

Opening your workspace

Your learning content and tools are loading.

Learning paths › Automation › Jinja filters and PAN-OS automation

Jinja filters and PAN-OS automation

Jinja and regular expressions inside a playbook, taught against a firewall: encrypted credentials kept in host_vars, address objects and groups read, filtered by name or description and created, a group built from gathered object names, a security rule composed from zones and addresses, and the candidate committed only when something changed — then the templating itself, a first match and then every match with its capture groups, matched text rewritten, config rendered with expressions and loops and composed from smaller files, Jinja placed directly in a task argument, and a variable name resolved at runtime. Explanation and checks; four written exercises.

Lessons

More in Automation