It sounds like you're connecting to the MDS domain, rather than the specific CMA-1 Domain.
Your ansible host/target should be the primary MDS. Then in the playbook, make sure to add a variable with your target domain with the ansible_checkpoint_domain variable. In my example below, my domain name is Domain1.
---
- name: "Show Hosts in the Domain"
gather_facts: no
hosts: mds-primary
vars:
ansible_connection: httpapi
ansible_httpapi_use_ssl: True
ansible_httpapi_validate_certs: False
ansible_network_os: check_point.mgmt.checkpoint
ansible_checkpoint_domain: Domain1
tasks:
- name: show-checkpoint-hosts
cp_mgmt_host_facts:
limit: 100
register: show_hosts
- debug:
msg: "{{ show_hosts }}"