LOGBOOK

HELP

Quiz Entry - updated: 2026.12.01

Map these Management API commands to their Ansible module: add-host, show-hosts, delete-host, publish, show-access-rulebase, run-script, show-logs.

add-host and delete-host → cp_mgmt_host with state: present / absent; show-hosts → cp_mgmt_host_facts without a name; publish → cp_mgmt_publish; show-access-rulebase → cp_mgmt_access_rule_facts; run-script → cp_mgmt_run_script; show-logs → cp_mgmt_show_logs.

API command Ansible task (all in check_point.mgmt.)
add-host cp_mgmt_host with state: present
set-host cp_mgmt_host, state: present, different values
delete-host cp_mgmt_host with state: absent
show-host cp_mgmt_host_facts with name:
show-hosts cp_mgmt_host_facts without name:
publish cp_mgmt_publish
show-access-rulebase cp_mgmt_access_rule_facts without layer:
run-script cp_mgmt_run_script
show-logs cp_mgmt_show_logs

The important difference: the API is imperative (you say add or delete), while the object modules are declarative (you say the host should be present with these values, and the module decides whether that means add, set or nothing).

Go deeper:

From Quiz: ITIA / Network Automation with Ansible and a Check Point Firewall | Updated: Dec 01, 2026