I found out why. Here is my hosts and playbook for ansible:
++++++++++++++++++++++++++++++++++++++
# This is the default ansible 'hosts' file.
[checkpoint]
<x.x.x.x>
[checkpoint:vars]
ansible_python_interpreter=/usr/bin/python3.6
ansible_httpapi_validate_certs=False
ansible_httpapi_use_ssl=True
ansible_network_os=check_point.mgmt.checkpoint
ansible_user=<username>
ansible_password=<password>
ansible_checkpoint_domain=<domain name>
++++++++++++++++++++++++++++++++++++++++
# This is the ansible 'playbook' file.
---
- hosts: checkpoint
connection: httpapi
tasks:
- name: show-host
cp_mgmt_host_facts:
name: Host_82.5.223.125
register: result
- name: show-hosts
cp_mgmt_host_facts:
details_level: standard
limit: 50
offset: 0
- name: Printing The Result
debug:
msg: "{{result}}"