Using check_point.mgmt 6.2.1 (current) in practicing my automation skills I learned in Tim's CCAS class. Ansible 2.10 on WSL running Ubuntu 22.04
https://galaxy.ansible.com/ui/repo/published/check_point/mgmt/content/module/cp_mgmt_nat_rule/?keywo...
The playbook creates an access policy (package), creates the access rule, and publishes the changes successfully.
When I try to add a task to add a NAT rule I get:
ERROR! couldn't resolve module/action 'cp_mgmt_nat_rule'. This oftent indicates a misspelling, missing collection, or incorrect module path.
This is confusing because everything else in collection check_point.mgmt worked.
Here is the task I'm adding:
- name: add a NAT rule
cp_mgmt_nat_rule:
package: Lab_Policy
name: Outbound NAT
enabled: true
installed_on:
- Policy Targets
original_destination: All_Internet
original_source: branch1_lan
translated_source: branch1_outbound_nat
method: hide
position: top
comments: outbound NAT
state: present
Here is how I install my environment:
- sudo apt install -y ansible python3-paramiko python3-pip
- ansible-galaxy collection install community.general vyos.vyos check_point.mgmt check_point.gaia
- python3 -m pip install XenAPI
Here is my complete process and how I build the lab using automation:
https://github.com/doritoes/NUC-Labs/blob/xcp-ng-improvement/XCP-ng/Appendix-Ansible.md
Anyone get the ansible working in check_point.mgmt 6.2.1? Or seen the same issue and solved it?
I did refer to this example
https://github.com/checkpointsw-devsec/enterprise-automation-poc/blob/main/ansible/roles/chkp-nat-po...