Hi,
Goal: I am trying to Verify Access Control Policy using Ansible for a particular domain
I used the documentation https://docs.ansible.com/ansible/latest/collections/check_point/mgmt/cp_mgmt_verify_policy_module.ht...
- name: verify-policy
cp_mgmt_verify_policy:
policy_package: standard
I set
- name: verify-policy
cp_mgmt_verify_policy:
policy_package: #the UID or String of the device
I got an error message when I ran my playbook
Playbook.yml
---
- hosts: check_point
connection: httpapi
gather_facts: False
vars_files:
- 'my_var.yaml'
- 'login.yml'
tasks:
- name: verify-policy
check_point.mgmt.cp_mgmt_verify_policy:
policy_package: #device name or UID added here
#cp_mgmt_verify_policy:
#policy_package: standard
my_var.yaml
ansible_httpapi_validate_certs: False
ansible_httpapi_use_ssl: True
ansible_network_os: check_point.mgmt.checkpoint
ansible_python_interpreter: /usr/bin/python3
login.yml
ansible_user: #checkpoint username
ansible_password: #checkpoint password
host inventory
[check_point]
#ip address of my checkpoint device
Error Message
$ ansible-playbook Playbook.yml
PLAY [check_point] **************************************************************************************
TASK [verify-policy]
fatal: [checkpoint]: FAILED! => {"changed": false, "msg": "Checkpoint device returned error 404 with message {'code: 'generic_err_object_not_found'} Unpublished chnages were dicharged"}
PLAY RECAP **********************************************************************************************
checkpoint :ok=0 changed=0 unreachable=0 failed=1 skipped=0 rescued=0 ignored=0
I'm I doing anything wrong here, is there anything I should be aware of?