<?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 Re: Integrating Ansible with checkpoint R80.10 Take 479 throws error. in Ansible</title>
    <link>https://community.checkpoint.com/t5/Ansible/Integrating-Ansible-with-checkpoint-R80-10-Take-479-throws-error/m-p/56514#M205</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;cp_mgmt_api_python_sdk is already downloaded and copied to python2.7 folder.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 999px;"&gt;&lt;img src="https://community.checkpoint.com/t5/image/serverpage/image-id/1667iCFBD4BA8CBEF99F3/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I imported this folder as well.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I followed deployment guide. Deployment Guide says "Take a break". Does it means it take time to import this folder.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ankur&lt;/P&gt;</description>
    <pubDate>Mon, 24 Jun 2019 06:21:07 GMT</pubDate>
    <dc:creator>Ankur_Datta</dc:creator>
    <dc:date>2019-06-24T06:21:07Z</dc:date>
    <item>
      <title>Integrating Ansible with checkpoint R80.10 Take 479 throws error.</title>
      <link>https://community.checkpoint.com/t5/Ansible/Integrating-Ansible-with-checkpoint-R80-10-Take-479-throws-error/m-p/56368#M203</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We have Management server running on R80.10 take 479. I am integrating it with Ansible. I followed the Ansible deployment guide. But when i run&amp;nbsp;ansible-playbook ansible-cp-test.yml, i get errors:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;TASK [login] ***********************************************************************************************************************************************************************************************&lt;BR /&gt;fatal: [127.0.0.1]: FAILED! =&amp;gt; {"changed": false, "module_stderr": "Shared connection to 127.0.0.1 closed.\r\n", "module_stdout": "Traceback (most recent call last):\r\n File \"/home/ankur/.ansible/tmp/ansible-tmp-1561117201.56-117286171471423/AnsiballZ_check_point_mgmt.py\", line 114, in \r\n _ansiballz_main()\r\n File \"/home/ankur/.ansible/tmp/ansible-tmp-1561117201.56-117286171471423/AnsiballZ_check_point_mgmt.py\", line 106, in _ansiballz_main\r\n invoke_module(zipped_mod, temp_path, ANSIBALLZ_PARAMS)\r\n File \"/home/ankur/.ansible/tmp/ansible-tmp-1561117201.56-117286171471423/AnsiballZ_check_point_mgmt.py\", line 49, in invoke_module\r\n imp.load_module('__main__', mod, module, MOD_DESC)\r\n File \"/tmp/ansible_check_point_mgmt_payload_93Ts0A/__main__.py\", line 8, in \r\nImportError: No module named cpapi\r\n", "msg": "MODULE FAILURE\nSee stdout/stderr for the exact error", "rc": 1}&lt;/P&gt;&lt;P&gt;PLAY RECAP *************************************************************************************************************************************************************************************************&lt;BR /&gt;127.0.0.1 : ok=1 changed=0 unreachable=0 failed=1 skipped=0 rescued=0 ignored=0&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Ansible is installed on Ubuntu OS.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kindly guide.&lt;/P&gt;</description>
      <pubDate>Fri, 21 Jun 2019 11:45:55 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Ansible/Integrating-Ansible-with-checkpoint-R80-10-Take-479-throws-error/m-p/56368#M203</guid>
      <dc:creator>Ankur_Datta</dc:creator>
      <dc:date>2019-06-21T11:45:55Z</dc:date>
    </item>
    <item>
      <title>Re: Integrating Ansible with checkpoint R80.10 Take 479 throws error.</title>
      <link>https://community.checkpoint.com/t5/Ansible/Integrating-Ansible-with-checkpoint-R80-10-Take-479-throws-error/m-p/56473#M204</link>
      <description>It tells you in the error message: you're missing the cpapi module.&lt;BR /&gt;You need to install it: &lt;A href="https://github.com/CheckPointSW/cp_mgmt_api_python_sdk" target="_blank"&gt;https://github.com/CheckPointSW/cp_mgmt_api_python_sdk&lt;/A&gt;</description>
      <pubDate>Sun, 23 Jun 2019 20:12:12 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Ansible/Integrating-Ansible-with-checkpoint-R80-10-Take-479-throws-error/m-p/56473#M204</guid>
      <dc:creator>PhoneBoy</dc:creator>
      <dc:date>2019-06-23T20:12:12Z</dc:date>
    </item>
    <item>
      <title>Re: Integrating Ansible with checkpoint R80.10 Take 479 throws error.</title>
      <link>https://community.checkpoint.com/t5/Ansible/Integrating-Ansible-with-checkpoint-R80-10-Take-479-throws-error/m-p/56514#M205</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;cp_mgmt_api_python_sdk is already downloaded and copied to python2.7 folder.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 999px;"&gt;&lt;img src="https://community.checkpoint.com/t5/image/serverpage/image-id/1667iCFBD4BA8CBEF99F3/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I imported this folder as well.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I followed deployment guide. Deployment Guide says "Take a break". Does it means it take time to import this folder.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ankur&lt;/P&gt;</description>
      <pubDate>Mon, 24 Jun 2019 06:21:07 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Ansible/Integrating-Ansible-with-checkpoint-R80-10-Take-479-throws-error/m-p/56514#M205</guid>
      <dc:creator>Ankur_Datta</dc:creator>
      <dc:date>2019-06-24T06:21:07Z</dc:date>
    </item>
    <item>
      <title>Re: Integrating Ansible with checkpoint R80.10 Take 479 throws error.</title>
      <link>https://community.checkpoint.com/t5/Ansible/Integrating-Ansible-with-checkpoint-R80-10-Take-479-throws-error/m-p/56561#M206</link>
      <description>Just because you've decompressed the file into the appropriate doesn't mean you've installed the module.&lt;BR /&gt;The link I provided previously explains how to install it.</description>
      <pubDate>Mon, 24 Jun 2019 15:20:23 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Ansible/Integrating-Ansible-with-checkpoint-R80-10-Take-479-throws-error/m-p/56561#M206</guid>
      <dc:creator>PhoneBoy</dc:creator>
      <dc:date>2019-06-24T15:20:23Z</dc:date>
    </item>
    <item>
      <title>Re: Integrating Ansible with checkpoint R80.10 Take 479 throws error.</title>
      <link>https://community.checkpoint.com/t5/Ansible/Integrating-Ansible-with-checkpoint-R80-10-Take-479-throws-error/m-p/56596#M207</link>
      <description>&lt;P&gt;Ohh i got it. i installed the module and it worked but when i am running a below playbook -&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;---&lt;BR /&gt;- hosts: GW&lt;BR /&gt;tasks:&lt;BR /&gt;- name: "login"&lt;BR /&gt;check_point_mgmt:&lt;BR /&gt;command: login&lt;BR /&gt;parameters:&lt;BR /&gt;username: "{{mgmt_user}}"&lt;BR /&gt;password: "{{mgmt_password}}"&lt;BR /&gt;management: "{{mgmt_server}}"&lt;BR /&gt;fingerprint: "{{fingerprint}}"&lt;BR /&gt;register: login_response&lt;BR /&gt;- name: "add test host"&lt;BR /&gt;check_point_mgmt:&lt;BR /&gt;command: add-host&lt;BR /&gt;parameters:&lt;BR /&gt;name: "test-123abc"&lt;BR /&gt;ip-address: "1.1.1.2"&lt;BR /&gt;color: "red"&lt;BR /&gt;session-data: "{{login_response}}"&lt;BR /&gt;- name: "discard"&lt;BR /&gt;check_point_mgmt:&lt;BR /&gt;command: discard&lt;BR /&gt;session-data: "{{login_response}}"&lt;BR /&gt;- name: "logout"&lt;BR /&gt;check_point_mgmt:&lt;BR /&gt;command: logout&lt;BR /&gt;session-data: "{{login_response}}"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i can't see host is created.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i get below output:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ankur@ankur-virtual-machine:~/71442b35e6e8d830e19f776a7b1b6cc8$ ansible-playbook ansible-cp-test.yml&lt;/P&gt;&lt;P&gt;PLAY [GW] ******************************************************************************************************************************************************************&lt;/P&gt;&lt;P&gt;TASK [Gathering Facts] *****************************************************************************************************************************************************&lt;BR /&gt;ok: [127.0.0.1]&lt;/P&gt;&lt;P&gt;TASK [login] ***************************************************************************************************************************************************************&lt;BR /&gt;[WARNING]: The value {'username': 'admin', 'management': '192.168.155.20', 'password': 'vpn123'} (type dict) in a string field was converted to u"{'username': 'admin',&lt;BR /&gt;'management': '192.168.155.20', 'password': 'vpn123'}" (type string). If this does not look like what you expect, quote the entire value to ensure it does not change.&lt;/P&gt;&lt;P&gt;ok: [127.0.0.1]&lt;/P&gt;&lt;P&gt;TASK [add test host] *******************************************************************************************************************************************************&lt;BR /&gt;[WARNING]: The value {'failed': False, 'changed': False, 'response': {'domain': None, 'url': '192.168.155.20:443', 'sid': '2jP5iL__pFExFqxlgO0nz9zdtdX0MStlhWyLrlFsiTI',&lt;BR /&gt;'context': 'web_api', 'fingerprint': '707C3540158E780AA86476233C1D46E56BEDE2EA', 'api_version': '1.1'}, 'warnings': ['The value {\'username\': \'admin\', \'management\':&lt;BR /&gt;\'192.168.155.20\', \'password\': \'vpn123\'} (type dict) in a string field was converted to u"{\'username\': \'admin\', \'management\': \'192.168.155.20\', \'password\':&lt;BR /&gt;\'vpn123\'}" (type string). If this does not look like what you expect, quote the entire value to ensure it does not change.']} (type dict) in a string field was converted&lt;BR /&gt;to u'{\'failed\': False, \'changed\': False, \'response\': {\'domain\': None, \'url\': \'192.168.155.20:443\', \'sid\': \'2jP5iL__pFExFqxlgO0nz9zdtdX0MStlhWyLrlFsiTI\',&lt;BR /&gt;\'context\': \'web_api\', \'fingerprint\': \'707C3540158E780AA86476233C1D46E56BEDE2EA\', \'api_version\': \'1.1\'}, \'warnings\': [\'The value {\\\'username\\\':&lt;BR /&gt;\\\'admin\\\', \\\'management\\\': \\\'192.168.155.20\\\', \\\'password\\\': \\\'vpn123\\\'} (type dict) in a string field was converted to u"{\\\'username\\\':&lt;BR /&gt;\\\'admin\\\', \\\'management\\\': \\\'192.168.155.20\\\', \\\'password\\\': \\\'vpn123\\\'}" (type string). If this does not look like what you expect, quote the entire&lt;BR /&gt;value to ensure it does not change.\']}' (type string). If this does not look like what you expect, quote the entire value to ensure it does not change.&lt;/P&gt;&lt;P&gt;[WARNING]: The value {'color': 'red', 'name': 'test-123abc', 'ip-address': '1.1.1.2'} (type dict) in a string field was converted to u"{'color': 'red', 'name': 'test-&lt;BR /&gt;123abc', 'ip-address': '1.1.1.2'}" (type string). If this does not look like what you expect, quote the entire value to ensure it does not change.&lt;/P&gt;&lt;P&gt;changed: [127.0.0.1]&lt;/P&gt;&lt;P&gt;TASK [discard] *************************************************************************************************************************************************************&lt;BR /&gt;ok: [127.0.0.1]&lt;/P&gt;&lt;P&gt;TASK [logout] **************************************************************************************************************************************************************&lt;BR /&gt;ok: [127.0.0.1]&lt;/P&gt;&lt;P&gt;PLAY RECAP *****************************************************************************************************************************************************************&lt;BR /&gt;127.0.0.1 : ok=5 changed=1 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Further why are we using 127.0.0.1?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Tue, 25 Jun 2019 06:44:49 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Ansible/Integrating-Ansible-with-checkpoint-R80-10-Take-479-throws-error/m-p/56596#M207</guid>
      <dc:creator>Ankur_Datta</dc:creator>
      <dc:date>2019-06-25T06:44:49Z</dc:date>
    </item>
    <item>
      <title>Re: Integrating Ansible with checkpoint R80.10 Take 479 throws error.</title>
      <link>https://community.checkpoint.com/t5/Ansible/Integrating-Ansible-with-checkpoint-R80-10-Take-479-throws-error/m-p/56637#M208</link>
      <description>You're talking to the Ansible agent on the localhost, which is making the relevant API calls.&lt;BR /&gt;There is no Ansible agent on the Check Point appliances to talk to.</description>
      <pubDate>Tue, 25 Jun 2019 18:57:25 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Ansible/Integrating-Ansible-with-checkpoint-R80-10-Take-479-throws-error/m-p/56637#M208</guid>
      <dc:creator>PhoneBoy</dc:creator>
      <dc:date>2019-06-25T18:57:25Z</dc:date>
    </item>
  </channel>
</rss>

