PaloAltoNetworks/pan-os-ansible

panos_security_rule should return created and modified dates when gathered

jgiroso opened this issue · 0 comments

Is your feature request related to a problem?

When gathering rules using the panos_security_rule module, the output does not include the created and modified fields. This will cause problems for our automation since we need to compare these dates to check if the security rule has been modified since it's creation date before we deprovision the rule.

Describe the solution you'd like

The panos_security_rule module outputs the created date and modified date when state is 'gathered'.

Additional context

This will cause problems for our automation since we need to compare these dates to check if the security rule has been modified since it's creation date before we deprovision the rule. If the rule has been modified since it's creation date, we cannot execute our deprovision tasks and the security rule will need to be assessed by a member of our network team.

The only possible workaround for this is to save each field in an inventory from our initial creation and then compare that to each field returned to make sure it matches which is unrealistic for our code and our environment. It would be much simpler to just ensure that no one has modified the entry manually since it's creation.

Created and Modified date fields on palo
image

Gathered output from a test security rule
image