- Access exclusive content
- Connect with peers
- Share your expertise
- Find support resources
03-25-2020 01:09 PM
Wondering if anyone has had any experience updating rules. I have approximately 700 or so rules that i need to add a security profile group to...
testing the following seems to basically overwrite anything not provided to 'any'
- name: update rules to FW
panos_security_rule:
ip_address: '{{ item.firewall }}'
username: '{{ username }}'
password: '{{ password }}'
rule_name: '{{ item.rule_name }}'
group_profile: '{{ item.profile_group_name }}'
commit: 'False'
with_items: "{{ firewall_rules }}"
03-25-2020 04:12 PM
Yes! You can use facts and jinja2 templating functions to accomplish this. I've authored a blog post that explains everything step by step:
03-25-2020 04:12 PM
Yes! You can use facts and jinja2 templating functions to accomplish this. I've authored a blog post that explains everything step by step:
Click Accept as Solution to acknowledge that the answer to your question has been provided.
The button appears next to the replies on topics you’ve started. The member who gave the solution and all future visitors to this topic will appreciate it!
These simple actions take just seconds of your time, but go a long way in showing appreciation for community members and the LIVEcommunity as a whole!
The LIVEcommunity thanks you for your participation!