<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Ansible Playbook - module/action cp_mgmt_show_gateways_and_servers not found in Ansible</title>
    <link>https://community.checkpoint.com/t5/Ansible/Ansible-Playbook-module-action-cp-mgmt-show-gateways-and-servers/m-p/230140#M815</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;today I made some first tests to get some kind of automation with ansible of our checkpoint management environment.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried to use the&amp;nbsp;&lt;SPAN&gt;check_point.mgmt Ansible collection, see&amp;nbsp;&lt;A href="https://galaxy.ansible.com/ui/repo/published/check_point/mgmt/?version=6.2.1" target="_blank"&gt;https://galaxy.ansible.com/ui/repo/published/check_point/mgmt/?version=6.2.1&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;There I have the problem that the module/action&amp;nbsp;&lt;STRONG&gt;cp_mgmt_show_gateways_and_servers&lt;/STRONG&gt; 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:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;ERROR! couldn't resolve module/action 'cp_mgmt_show_gateways_and_servers'. This often indicates a misspelling, missing collection, or incorrect module path.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;...&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;The offending line appears to be:&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;# msg: User {{ ansible_user }}&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;- name: show_gateways_and_servers&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;^ here&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Below you will find my playbook content:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;#####################################&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;- name: Checkpoint Inventory-Build&lt;BR /&gt;hosts: check_point&lt;BR /&gt;connection: httpapi&lt;BR /&gt;gather_facts: no&lt;BR /&gt;vars:&lt;BR /&gt;tasks:&lt;BR /&gt;- name: show_gateways_and_servers&lt;BR /&gt;cp_mgmt_show_gateways_and_servers:&lt;BR /&gt;details_level: full&lt;/P&gt;&lt;P&gt;- name: show-simple-gateways&lt;BR /&gt;cp_mgmt_simple_gateway_facts:&lt;BR /&gt;details_level: standard&lt;BR /&gt;limit: 50&lt;BR /&gt;offset: 0&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;#####################################&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Perhaps someone can help and knows what's going on.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 18 Oct 2024 12:22:20 GMT</pubDate>
    <dc:creator>Us4r</dc:creator>
    <dc:date>2024-10-18T12:22:20Z</dc:date>
    <item>
      <title>Ansible Playbook - module/action cp_mgmt_show_gateways_and_servers not found</title>
      <link>https://community.checkpoint.com/t5/Ansible/Ansible-Playbook-module-action-cp-mgmt-show-gateways-and-servers/m-p/230140#M815</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;today I made some first tests to get some kind of automation with ansible of our checkpoint management environment.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried to use the&amp;nbsp;&lt;SPAN&gt;check_point.mgmt Ansible collection, see&amp;nbsp;&lt;A href="https://galaxy.ansible.com/ui/repo/published/check_point/mgmt/?version=6.2.1" target="_blank"&gt;https://galaxy.ansible.com/ui/repo/published/check_point/mgmt/?version=6.2.1&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;There I have the problem that the module/action&amp;nbsp;&lt;STRONG&gt;cp_mgmt_show_gateways_and_servers&lt;/STRONG&gt; 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:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;ERROR! couldn't resolve module/action 'cp_mgmt_show_gateways_and_servers'. This often indicates a misspelling, missing collection, or incorrect module path.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;...&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;The offending line appears to be:&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;# msg: User {{ ansible_user }}&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;- name: show_gateways_and_servers&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;^ here&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Below you will find my playbook content:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;#####################################&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;- name: Checkpoint Inventory-Build&lt;BR /&gt;hosts: check_point&lt;BR /&gt;connection: httpapi&lt;BR /&gt;gather_facts: no&lt;BR /&gt;vars:&lt;BR /&gt;tasks:&lt;BR /&gt;- name: show_gateways_and_servers&lt;BR /&gt;cp_mgmt_show_gateways_and_servers:&lt;BR /&gt;details_level: full&lt;/P&gt;&lt;P&gt;- name: show-simple-gateways&lt;BR /&gt;cp_mgmt_simple_gateway_facts:&lt;BR /&gt;details_level: standard&lt;BR /&gt;limit: 50&lt;BR /&gt;offset: 0&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;#####################################&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Perhaps someone can help and knows what's going on.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 18 Oct 2024 12:22:20 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Ansible/Ansible-Playbook-module-action-cp-mgmt-show-gateways-and-servers/m-p/230140#M815</guid>
      <dc:creator>Us4r</dc:creator>
      <dc:date>2024-10-18T12:22:20Z</dc:date>
    </item>
    <item>
      <title>Re: Ansible Playbook - module/action cp_mgmt_show_gateways_and_servers not found</title>
      <link>https://community.checkpoint.com/t5/Ansible/Ansible-Playbook-module-action-cp-mgmt-show-gateways-and-servers/m-p/230141#M816</link>
      <description>&lt;P&gt;I think I did found the solution in another post. Looks like in front of every module command,&amp;nbsp;check_point.mgmt needs to be added.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can be closed.&lt;/P&gt;</description>
      <pubDate>Fri, 18 Oct 2024 12:26:47 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Ansible/Ansible-Playbook-module-action-cp-mgmt-show-gateways-and-servers/m-p/230141#M816</guid>
      <dc:creator>Us4r</dc:creator>
      <dc:date>2024-10-18T12:26:47Z</dc:date>
    </item>
  </channel>
</rss>

