Hi team,
I am currently developing a playbook to automate rule creation on checkpoint. But for now the rule is made at the very bottom/top of the list of rules and I want to make the rule on the specific access section. i'm using new module from ansible
here is my code:
- name: create access-rule if not present
check_point.mgmt.cp_mgmt_access_rule:
layer: "{{ cp_layer }}"
name: "{{ cp_access_rule_name }}"
service:
- "{{ cp_service_tcp_name }}"
action: "{{ cp_access_rule_action }}"
comments: create automatic by ansible
source:
- "{{ cp_access_rule_source }}"
destination:
- "{{ cp_access_rule_destination }}"
enabled: true
search_entire_rulebase: true
track:
type: log
position: bottom
state: present
register: create_access_rule
ignore_errors: true
Is there any insight i can achieve to create rule on specific access section?