Hi,
I'm running a Docker Container with Ubuntu on my Windows Client and I'm trying to use Ansible with Smart-1 Cloud Management. This is my host file:
[checkpoint]
<mytenant>.maas.checkpoint.com
[checkpoint:vars]
ansible_connection=httpapi
ansible_httpapi_validate_certs=False
ansible_httpapi_use_ssl=True
ansible_network_os=check_point.mgmt.checkpoint
ansible_api_key=<apikey>
ansible_cloud_mgmt_id=<mgmtid>
<mytenant>, <mgmtid> and <apikey> I get form the web_api URL form Smart-1 Cloud -> Setting -> API & SmartConsole.
When I run simple playbook to add an host, I get an error:
Playbook:
---
- hosts: checkpoint
connection: httpapi
tasks:
# Add or delete host object in Check Point management server
- name: add-host or delete-host
check_point.mgmt.cp_mgmt_hosts:
color: red
name: My test host
ip_address: 192.168.1.1
auto_publish_session: true
Error msg:
PLAY [checkpoint] ******************************************************************************************************
TASK [Gathering Facts] *************************************************************************************************
ok: [<tenant-id>.maas.checkpoint.com]
ERROR! Unexpected Exception, this is probably a bug: cannot import name 'CertificateError' from 'ansible.module_utils.urls' (/usr/lib/python3/dist-packages/ansible/module_utils/urls.py)
Any ideas?