- CheckMates
- :
- Products
- :
- Developers
- :
- Ansible
- :
- Ansible Playbook - module/action cp_mgmt_show_gate...
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
Are you a member of CheckMates?
×- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
