I ran the sample code. I get a console error message
---
- name: Global Objects
hosts: Global
connection: httpapi
gather_facts: False
vars_files:
- 'credentials/my_var.yml'
- 'credentials/login.yml'
tasks:
- name: check-if-group-exists-if-not-create
check_point.mgmt.cp_mgmt_group_facts:
name: gTest1A
- name: fail
fail:
check_point.mgmt.cp_mgmt_host:
name: Host1
state: present
#members: Host1
auto_publish_session: yes
#delegate_to: Global
Error Message
TASK [fail] ********************************************************************************************************************************************************************************
fatal: [Global]: FAILED! => {"changed": false, "msg": "Invalid options for fail: check_point.mgmt.cp_mgmt_host"}
@PhoneBoy @Jonas_Rosenboom