PaloAltoNetworks / ansible-pan

Ansible modules for Palo Alto Networks NGFWs
Other
229 stars 159 forks source link

panos_security_rule | state attribute #410

Closed SudarshanVK closed 5 years ago

SudarshanVK commented 5 years ago

State: "present" overwrites any existing rule with the same name which may be undesirable. Is there a way to back out if the rule name already exists or is that a login I will need to build into my script?

Can the operation feature be brought back?

shinmog commented 5 years ago

Use panos_security_rule_facts to get the list of security rules, then a subsequent panos_security_rule task can have a when: specification that prevents the task from running if the name is already present.