PaloAltoNetworks / pan-os-ansible

Ansible collection for easy automation of Palo Alto Networks next generation firewalls and Panorama, in both physical and virtual form factors.
https://pan.dev/ansible/docs/panos
Apache License 2.0
209 stars 97 forks source link

panos_security_rule - gather security rules based on vsys #576

Open thejptnaz opened 3 months ago

thejptnaz commented 3 months ago

Describe the bug

https://paloaltonetworks.github.io/pan-os-ansible/modules/panos_security_rule_module.html#ansible-collections-paloaltonetworks-panos-panos-security-rule-module

It seems that "vsys" option is either not working or not available to use when the firewall has multi-vsys setup

Expected behavior

To be able to gather security rules based on vsys for Firewall with multi-vsys enabled

Current behavior

No security rules were capture when targeting multi-vsys firewalls. When firewall is not on mult-vsys the playbook works without issue.

Steps to reproduce

E.g.

E.g.

Screenshots

ok: [localhost] => security_rule_vsys_debug: changed: false failed: false gathered: [] gathered_xml: []

Your Environment