The check_point.mgmt collection has cp_mgmt_host, cp_mgmt_host_facts and an older checkpoint_host. What is the naming pattern, and which should you use?
cp_mgmt_<object> creates, updates or deletes an object; cp_mgmt_<object>_facts only reads objects; the checkpoint_* modules are an older set from Ansible 2.8 that are superseded by the cp_mgmt_* modules from Ansible 2.9.
The collection wraps the Management API almost one-to-one, and the module names say what kind of call they make:
| Module pattern | API calls behind it | Typical use |
|---|---|---|
cp_mgmt_host (with state: present/absent) |
add-host / set-host / delete-host |
manage an object |
cp_mgmt_host_facts |
show-host / show-hosts |
read objects into ansible_facts |
cp_mgmt_publish, cp_mgmt_run_script, cp_mgmt_install_policy, … |
one command each | actions |
The same pattern repeats for networks, groups, gateways, access rules and so on, which makes it easy to guess the module for any API command.
The nine checkpoint_* modules shipped with Ansible 2.8 are kept for compatibility only. New playbooks should use the cp_mgmt_* modules, written with their full name, check_point.mgmt.cp_mgmt_host.
Go deeper:
check_point.mgmt collection index (Ansible docs) — every module, grouped by object type.
CheckPointAnsibleMgmtCollection (GitHub) — the collection's source, changelog and examples.