Create a Post
cancel
Showing results for 
Search instead for 
Did you mean: 
Us4r
Contributor

Ansible Playbook - module/action cp_mgmt_show_gateways_and_servers not found

Hello,

 

today I made some first tests to get some kind of automation with ansible of our checkpoint management environment.

 

I tried to use the check_point.mgmt Ansible collection, see https://galaxy.ansible.com/ui/repo/published/check_point/mgmt/?version=6.2.1

 

There I have the problem that the module/action cp_mgmt_show_gateways_and_servers is not working in my playbook. The "cp_mgmt_simple_gateway_facts" for example can be executed but on the faulty command I get following response from ansible:

 

ERROR! couldn't resolve module/action 'cp_mgmt_show_gateways_and_servers'. This often indicates a misspelling, missing collection, or incorrect module path.

...

The offending line appears to be:

# msg: User {{ ansible_user }}
- name: show_gateways_and_servers
^ here

 

Below you will find my playbook content:

#####################################

- name: Checkpoint Inventory-Build
hosts: check_point
connection: httpapi
gather_facts: no
vars:
tasks:
- name: show_gateways_and_servers
cp_mgmt_show_gateways_and_servers:
details_level: full

- name: show-simple-gateways
cp_mgmt_simple_gateway_facts:
details_level: standard
limit: 50
offset: 0

#####################################

 

Perhaps someone can help and knows what's going on.

 

Thanks

 

 

0 Kudos
1 Reply
Us4r
Contributor

I think I did found the solution in another post. Looks like in front of every module command, check_point.mgmt needs to be added.

 

Can be closed.

0 Kudos
Upcoming Events

    CheckMates Events