Hi Team,
i am adding the rulebase via ansible and having 2 policy package like "standard and Test_APP" policy package.whatever rule in publishing its going to standard only not going to APP policy package.is there any way to publish the rule to APP policy package.
Please find the below script:
- name: "create rule at the top of a section called 'script rules'"
check_point_mgmt:
command: add-access-rule
parameters:
layer: "network"
name: "created by me"
position:
top: "web"
source:
- "host2"
destination:
- "host3"
service:
- "tcp_77"
action: "accept"
session-data: "{{login_response}}"
- name: "publish"
check_point_mgmt:
command: publish
session-data: "{{login_response}}"
- name: "install policy"
check_point_mgmt:
command: install-policy
parameters:
policy-package: "Test_APP"
session-data: "{{login_response}}"
rule is publishing on standard policy package.but policy is installing on Test_APP targeted gateway. i need help on publishing the policy on correct policy package.
Regards
Aathi