<?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: Ansible: Remove Host object from Group in Ansible</title>
    <link>https://community.checkpoint.com/t5/Ansible/Ansible-Remove-Host-object-from-Group/m-p/82805#M294</link>
    <description>Pretty sure that behavior is "by design."&lt;BR /&gt;When an object is created in Ansible, it is assumed that Ansible will control its existence and configuration.&lt;BR /&gt;When a pre-existing object is merely manipulated by Ansible, it's not possible for Ansible to know whether it should make a destructive change or not because it may have been modified by a human.</description>
    <pubDate>Wed, 22 Apr 2020 17:03:43 GMT</pubDate>
    <dc:creator>PhoneBoy</dc:creator>
    <dc:date>2020-04-22T17:03:43Z</dc:date>
    <item>
      <title>Ansible: Remove Host object from Group</title>
      <link>https://community.checkpoint.com/t5/Ansible/Ansible-Remove-Host-object-from-Group/m-p/82085#M280</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;I have a problem when I try to remove an Host object from a Group of objects.&lt;/P&gt;&lt;P&gt;For example, I have a group with this members:&lt;/P&gt;&lt;P&gt;Group_1:&lt;BR /&gt;- Host_1.1.1.1&lt;BR /&gt;- Host_2.2.2.2&lt;BR /&gt;- Host_3.3.3.3&lt;BR /&gt;- Host_4.4.4.4&lt;/P&gt;&lt;P&gt;And I want to remove the object "Host_3.3.3.3" from that "Group_1".&lt;/P&gt;&lt;P&gt;The logic from my playbook is:&lt;/P&gt;&lt;P&gt;1 - To get all members from that group and save them inside a list.&lt;BR /&gt;list = [Host_1.1.1.1, Host_2.2.2.2, Host_3.3.3.3, Host_4.4.4.4]&lt;/P&gt;&lt;P&gt;2 - Remove from that list, the object that I want to delete.&lt;BR /&gt;list = [Host_1.1.1.1, Host_2.2.2.2, Host_4.4.4.4]&lt;/P&gt;&lt;P&gt;3 - Call "cp_mgmt_group" module and set the members parameter with the list. I am editing the Group object with a new list of members.&lt;BR /&gt;cp_mgmt_group:&lt;BR /&gt;&amp;nbsp;&amp;nbsp; name: Group_1&lt;BR /&gt;&amp;nbsp;&amp;nbsp; members: "{{ list }}"&lt;BR /&gt;&amp;nbsp;&amp;nbsp; state: present&lt;BR /&gt;&amp;nbsp;&amp;nbsp; auto_publish_session: yes&lt;/P&gt;&lt;P&gt;All playbook runs OK, but when I go to the SmartConsole to see the changes, the "Group_1" still having the object "Host_3.3.3.3" that I removed with the Ansible playbook.&lt;BR /&gt;I publish all changes in the playbook, and install the policy successfuly. And also, I have checked that the steps 1 and 2 works fine.&lt;/P&gt;&lt;P&gt;In other playbooks, I follow the same logic when I want to add some new object to the group, changing the second step by Add to that list the new object, and it works fine. Why when I pass the list with less members, the action doesn't work?&lt;/P&gt;&lt;P&gt;Does "cp_mgmt_group" module support to delete just one object inside of it? Or is there any simple way to do this? Any comment will be appreciated.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Thu, 16 Apr 2020 09:26:39 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Ansible/Ansible-Remove-Host-object-from-Group/m-p/82085#M280</guid>
      <dc:creator>Sannet</dc:creator>
      <dc:date>2020-04-16T09:26:39Z</dc:date>
    </item>
    <item>
      <title>Re: Ansible: Remove Host object from Group</title>
      <link>https://community.checkpoint.com/t5/Ansible/Ansible-Remove-Host-object-from-Group/m-p/82225#M283</link>
      <description>&lt;P&gt;I reply myself, but unfortunately not with the final answer.&lt;/P&gt;&lt;P&gt;I think that the problem is related with the fact that as the members already exists in the group, the module doesn't make any change (See the&lt;STRONG&gt;&lt;EM&gt;"changed": false&lt;/EM&gt;&lt;/STRONG&gt; ) even if I am passing less members than the members that already have the group at that time.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;"cp_mgmt_group" output:&lt;/P&gt;&lt;P&gt;ok: [fw] =&amp;gt; {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;EM&gt;&lt;STRONG&gt;"changed": false,&lt;/STRONG&gt;&lt;/EM&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "checkpoint_session_uid": "1ae46488-c031-4426-b7df-ff435f81a5c3",&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "invocation": {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "module_args": {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "auto_publish_session": true,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "color": null,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "comments": null,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "details_level": null,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "groups": null,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "ignore_errors": null,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "ignore_warnings": null,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "members": [&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "Host_1.1.1.1",&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "Host_1.1.1.2",&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "Host_1.1.1.4"&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ],&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "name": "Group1",&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "state": "present",&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "tags": null,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "version": null,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "wait_for_task": true&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;Could be any other form to remove that object from the group or to force the module to make the changes?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Fri, 17 Apr 2020 11:13:59 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Ansible/Ansible-Remove-Host-object-from-Group/m-p/82225#M283</guid>
      <dc:creator>Sannet</dc:creator>
      <dc:date>2020-04-17T11:13:59Z</dc:date>
    </item>
    <item>
      <title>Re: Ansible: Remove Host object from Group</title>
      <link>https://community.checkpoint.com/t5/Ansible/Ansible-Remove-Host-object-from-Group/m-p/82337#M285</link>
      <description>What version of Check Point management?&lt;BR /&gt;What errors (if any) are shown when you try and run the playbook after you've removed Host_1.1.1.3 from it?&lt;BR /&gt;Also, what does $FWDIR/log/api.elg say?</description>
      <pubDate>Sat, 18 Apr 2020 21:33:46 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Ansible/Ansible-Remove-Host-object-from-Group/m-p/82337#M285</guid>
      <dc:creator>PhoneBoy</dc:creator>
      <dc:date>2020-04-18T21:33:46Z</dc:date>
    </item>
    <item>
      <title>Re: Ansible: Remove Host object from Group</title>
      <link>https://community.checkpoint.com/t5/Ansible/Ansible-Remove-Host-object-from-Group/m-p/82451#M286</link>
      <description>&lt;P&gt;&lt;EM&gt;-What version of Check Point management?&lt;/EM&gt;&lt;BR /&gt;I have installed the Check_Point_R80_10_JUMBO_HF_Bundle_T259 a few weeks ago:&lt;BR /&gt;FW&amp;gt; fw ver&lt;BR /&gt;This is Check Point's software version R80.10 - Build 223&lt;BR /&gt;FW&amp;gt; fwm ver&lt;BR /&gt;This is Check Point Security Management Server R80.10 - Build 054&lt;/P&gt;&lt;P&gt;&lt;EM&gt;-What errors (if any) are shown when you try and run the playbook after you've removed Host_1.1.1.3 from it?&lt;/EM&gt;&lt;BR /&gt;There is no error while running the playbook.&lt;/P&gt;&lt;P&gt;&lt;EM&gt;-Also, what does $FWDIR/log/api.elg say?&lt;/EM&gt;&lt;BR /&gt;Follow the log when I try to remove object "Block_1.1.1.2" from the group "Blacklist" that contains the members ["Block_1.1.1.1", "Block_1.1.1.2", "Block_1.1.1.3", "Block_1.1.1.4", "Block_1.1.1.5", "Block_1.1.1.6"]&lt;BR /&gt;I'm using the module cp_mgmt_group passing all objects except the object I want to remove.&lt;/P&gt;&lt;P&gt;--------------------------------------&lt;BR /&gt;2020-04-20 11:11:05,407 INFO org.apache.cxf.interceptor.LoggingInInterceptor.log:250 [qtp1746170792-30] - Inbound Message&lt;BR /&gt;----------------------------&lt;BR /&gt;ID: 922&lt;BR /&gt;Address: &lt;A href="http://127.0.0.1:50276/web_api/equals" target="_blank"&gt;http://127.0.0.1:50276/web_api/equals&lt;/A&gt;&lt;BR /&gt;Encoding: ISO-8859-1&lt;BR /&gt;Http-Method: POST&lt;BR /&gt;Content-Type: application/json&lt;BR /&gt;Headers: {accept-encoding=[identity], connection=[keep-alive], Content-Length=[148], content-type=[application/json], Host=[127.0.0.1:50276], User-Agent=[Python-urllib/3.6], X-Chkp-Sid=[fxH3s_SgVrU5ZACbmSo2Xvj0fM2N171NddKIQOdTeK0], X-Forwarded-For=[192.168.3.2], X-Forwarded-Host=[192.168.3.7:443], X-Forwarded-Host-Port=[443], X-Forwarded-Server=[192.168.3.7]}&lt;BR /&gt;Payload: {"params": {"name": "Blacklist", "members": ["Block_1.1.1.1", "Block_1.1.1.3", "Block_1.1.1.4", "Block_1.1.1.5", "Block_1.1.1.6"]}, "type": "group"}&lt;BR /&gt;--------------------------------------&lt;BR /&gt;2020-04-20 11:11:05,414 WARN com.checkpoint.management.web_api_is.utils.helpers.RequestHeadersHelper.getMediaType_aroundBody6:21 [qtp1746170792-30] - No Accept header received. Falling back to default media type [application/json].&lt;BR /&gt;2020-04-20 11:11:05,415 INFO com.checkpoint.management.web_api_is.utils.helpers.ApiCache.&amp;lt;init&amp;gt;:13 [qtp1746170792-30] - Cache created and initialized&lt;BR /&gt;2020-04-20 11:11:05,415 INFO com.checkpoint.management.web_api.web_services.WebApiEntryPoint.logRequestedCommandInfo:33 [qtp1746170792-30] - Executing [equals] of version 1.1 (references 1)&lt;BR /&gt;2020-04-20 11:11:05,655 INFO com.checkpoint.management.web_api_is.utils.CsvFileWriterUtils.writeCsvLine:3 [qtp1746170792-30] - 2020-04-20,11:11:05 +0200,equals,PASSED,241&lt;BR /&gt;2020-04-20 11:11:05,657 INFO org.apache.cxf.interceptor.LoggingOutInterceptor.log:250 [qtp1746170792-30] - Outbound Message&lt;BR /&gt;---------------------------&lt;BR /&gt;ID: 922&lt;BR /&gt;Response-Code: 200&lt;BR /&gt;Content-Type: application/json&lt;BR /&gt;Headers: {Content-Type=[application/json], Date=[Mon, 20 Apr 2020 09:11:05 GMT]}&lt;BR /&gt;Payload: {&lt;BR /&gt;"equals" : true&lt;BR /&gt;}&lt;BR /&gt;--------------------------------------&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I think that the problem is related with the way that how Ansible works.&lt;BR /&gt;When you try to update the members of a group, if inside the members there is at least one new member that wasn't there before, the task "changes" the group object, adding the new member. (That works ok in my playbook)&lt;BR /&gt;But if inside the members there is no one new (because you only have removed one of them, the rest still there) it doesn't make any change because the members that you are trying to add now are already there, and nothing changes in the group object.&lt;/P&gt;&lt;P&gt;Maybe this logic is not valid.&lt;/P&gt;&lt;P&gt;I hope I have explained myself well.&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Mon, 20 Apr 2020 09:04:15 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Ansible/Ansible-Remove-Host-object-from-Group/m-p/82451#M286</guid>
      <dc:creator>Sannet</dc:creator>
      <dc:date>2020-04-20T09:04:15Z</dc:date>
    </item>
    <item>
      <title>Re: Ansible: Remove Host object from Group</title>
      <link>https://community.checkpoint.com/t5/Ansible/Ansible-Remove-Host-object-from-Group/m-p/82535#M287</link>
      <description>Ansible is not formally supported with R80.10 Management until JHF 270 per &lt;A href="https://supportcenter.checkpoint.com/supportcenter/portal?eventSubmit_doGoviewsolutiondetails=&amp;amp;solutionid=sk114661" target="_blank"&gt;https://supportcenter.checkpoint.com/supportcenter/portal?eventSubmit_doGoviewsolutiondetails=&amp;amp;solutionid=sk114661&lt;/A&gt;&lt;BR /&gt;It's possible that's the issue here.&lt;BR /&gt;&lt;BR /&gt;If you created the group with Ansible, it should work to simply remove the item from the group definition in the playbook.&lt;BR /&gt;If the group existed prior to your use of Ansible, it's possible (but I'm not certain) that it's working the way you describe.&lt;BR /&gt;In any case, before proceeding further, it's best to upgrade to the JHF supported with Ansible.</description>
      <pubDate>Mon, 20 Apr 2020 19:09:32 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Ansible/Ansible-Remove-Host-object-from-Group/m-p/82535#M287</guid>
      <dc:creator>PhoneBoy</dc:creator>
      <dc:date>2020-04-20T19:09:32Z</dc:date>
    </item>
    <item>
      <title>Re: Ansible: Remove Host object from Group</title>
      <link>https://community.checkpoint.com/t5/Ansible/Ansible-Remove-Host-object-from-Group/m-p/82657#M288</link>
      <description>&lt;P&gt;Thank you for your replies.&lt;/P&gt;&lt;P&gt;I have the latest JHF dated last month "take 272" (I'm not sure why it just displays "build 057") so it must be enough as it requires "take 270", right?&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Check_Point_R80_10_JUMBO_HF_Bundle_T272_sk116380_FULL.tgz&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;The Security Gateway and the Security Management are on the same VM.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 21 Apr 2020 17:06:09 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Ansible/Ansible-Remove-Host-object-from-Group/m-p/82657#M288</guid>
      <dc:creator>Sannet</dc:creator>
      <dc:date>2020-04-21T17:06:09Z</dc:date>
    </item>
    <item>
      <title>Re: Ansible: Remove Host object from Group</title>
      <link>https://community.checkpoint.com/t5/Ansible/Ansible-Remove-Host-object-from-Group/m-p/82671#M289</link>
      <description>Did the group object you use for this exist prior to use of Ansible or was it created entirely in Ansible?</description>
      <pubDate>Tue, 21 Apr 2020 20:01:33 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Ansible/Ansible-Remove-Host-object-from-Group/m-p/82671#M289</guid>
      <dc:creator>PhoneBoy</dc:creator>
      <dc:date>2020-04-21T20:01:33Z</dc:date>
    </item>
    <item>
      <title>Re: Ansible: Remove Host object from Group</title>
      <link>https://community.checkpoint.com/t5/Ansible/Ansible-Remove-Host-object-from-Group/m-p/82737#M291</link>
      <description>&lt;P&gt;I've tried both ways: with a new group created by the Ansible playbook, and with an existing group created through the SmartConsole.&lt;BR /&gt;Unfortunately with the same result.&lt;/P&gt;</description>
      <pubDate>Wed, 22 Apr 2020 08:12:35 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Ansible/Ansible-Remove-Host-object-from-Group/m-p/82737#M291</guid>
      <dc:creator>Sannet</dc:creator>
      <dc:date>2020-04-22T08:12:35Z</dc:date>
    </item>
    <item>
      <title>Re: Ansible: Remove Host object from Group</title>
      <link>https://community.checkpoint.com/t5/Ansible/Ansible-Remove-Host-object-from-Group/m-p/82780#M293</link>
      <description>I was wrong in my last post. I didn't check it well.&lt;BR /&gt;&lt;BR /&gt;You are right &lt;a href="https://community.checkpoint.com/t5/user/viewprofilepage/user-id/7"&gt;@PhoneBoy&lt;/a&gt;. If the group has been previously created with Ansible, I can remove one host inside of it without problems with "cp_mgmt_group". But if the group was created by the SmartConsole the playbook doesn't remove it.&lt;BR /&gt;&lt;BR /&gt;It's weird ... but it works.&lt;BR /&gt;&lt;BR /&gt;Thank you for your help.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 22 Apr 2020 14:42:14 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Ansible/Ansible-Remove-Host-object-from-Group/m-p/82780#M293</guid>
      <dc:creator>Sannet</dc:creator>
      <dc:date>2020-04-22T14:42:14Z</dc:date>
    </item>
    <item>
      <title>Re: Ansible: Remove Host object from Group</title>
      <link>https://community.checkpoint.com/t5/Ansible/Ansible-Remove-Host-object-from-Group/m-p/82805#M294</link>
      <description>Pretty sure that behavior is "by design."&lt;BR /&gt;When an object is created in Ansible, it is assumed that Ansible will control its existence and configuration.&lt;BR /&gt;When a pre-existing object is merely manipulated by Ansible, it's not possible for Ansible to know whether it should make a destructive change or not because it may have been modified by a human.</description>
      <pubDate>Wed, 22 Apr 2020 17:03:43 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Ansible/Ansible-Remove-Host-object-from-Group/m-p/82805#M294</guid>
      <dc:creator>PhoneBoy</dc:creator>
      <dc:date>2020-04-22T17:03:43Z</dc:date>
    </item>
    <item>
      <title>Re: Ansible: Remove Host object from Group</title>
      <link>https://community.checkpoint.com/t5/Ansible/Ansible-Remove-Host-object-from-Group/m-p/93425#M344</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.checkpoint.com/t5/user/viewprofilepage/user-id/43610"&gt;@Sannet&lt;/a&gt;, sorry to dig up the topic.. I'am having the same issue and the only way to modify object in group for me, is using cp_mgmt_group with the present state and the members already existing in the group minus the object i don't want anymore... Is there any other solution ? More efficient ones ?&lt;/P&gt;</description>
      <pubDate>Wed, 05 Aug 2020 13:30:50 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Ansible/Ansible-Remove-Host-object-from-Group/m-p/93425#M344</guid>
      <dc:creator>Arenaos</dc:creator>
      <dc:date>2020-08-05T13:30:50Z</dc:date>
    </item>
    <item>
      <title>Re: Ansible: Remove Host object from Group</title>
      <link>https://community.checkpoint.com/t5/Ansible/Ansible-Remove-Host-object-from-Group/m-p/93456#M345</link>
      <description>&lt;P&gt;Again, by design.&lt;BR /&gt;There is no explicit "delete" command in Ansible, there is only adding and removing from the playbook and rerunning the playbook.&lt;/P&gt;</description>
      <pubDate>Wed, 05 Aug 2020 16:50:50 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Ansible/Ansible-Remove-Host-object-from-Group/m-p/93456#M345</guid>
      <dc:creator>PhoneBoy</dc:creator>
      <dc:date>2020-08-05T16:50:50Z</dc:date>
    </item>
    <item>
      <title>Re: Ansible: Remove Host object from Group</title>
      <link>https://community.checkpoint.com/t5/Ansible/Ansible-Remove-Host-object-from-Group/m-p/93562#M346</link>
      <description>&lt;P&gt;&lt;a href="https://community.checkpoint.com/t5/user/viewprofilepage/user-id/7"&gt;@PhoneBoy&lt;/a&gt;, thanks for your answer. Is there a will in the futur to make it work with a delete command ? Also, I think there is a way through the Smart Console API to do it ? Right ?&amp;nbsp;&lt;/P&gt;&lt;P&gt;Our compagny have thousands of objects and thousands of groups, so i assume if i do the trick with ansible it will impact all the rules with these groups... This is not a solution for us &lt;span class="lia-unicode-emoji" title=":confused_face:"&gt;😕&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Gary&lt;/P&gt;</description>
      <pubDate>Thu, 06 Aug 2020 09:58:45 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Ansible/Ansible-Remove-Host-object-from-Group/m-p/93562#M346</guid>
      <dc:creator>Arenaos</dc:creator>
      <dc:date>2020-08-06T09:58:45Z</dc:date>
    </item>
    <item>
      <title>Re: Ansible: Remove Host object from Group</title>
      <link>https://community.checkpoint.com/t5/Ansible/Ansible-Remove-Host-object-from-Group/m-p/93584#M347</link>
      <description>&lt;P&gt;Yes, it is possible to issue a delete command from the API and SmartConsole.&lt;/P&gt;
&lt;P&gt;Ansible operates under the assumption it is entirely responsible for creating/removing the relevant infrastructure and configuration.&lt;BR /&gt;A direct "delete" operation from Ansible, therefore, doesn't make a lot of sense.&lt;/P&gt;</description>
      <pubDate>Thu, 06 Aug 2020 17:28:21 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Ansible/Ansible-Remove-Host-object-from-Group/m-p/93584#M347</guid>
      <dc:creator>PhoneBoy</dc:creator>
      <dc:date>2020-08-06T17:28:21Z</dc:date>
    </item>
    <item>
      <title>Re: Ansible: Remove Host object from Group</title>
      <link>https://community.checkpoint.com/t5/Ansible/Ansible-Remove-Host-object-from-Group/m-p/127582#M576</link>
      <description>&lt;P&gt;I don't understand why there is not an api and ansible command to delete a specific host from an specific group.&lt;BR /&gt;It is quite a limitation&lt;/P&gt;</description>
      <pubDate>Fri, 20 Aug 2021 18:40:46 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Ansible/Ansible-Remove-Host-object-from-Group/m-p/127582#M576</guid>
      <dc:creator>Luis_Miguel_Mig</dc:creator>
      <dc:date>2021-08-20T18:40:46Z</dc:date>
    </item>
    <item>
      <title>Re: Ansible: Remove Host object from Group</title>
      <link>https://community.checkpoint.com/t5/Ansible/Ansible-Remove-Host-object-from-Group/m-p/127590#M577</link>
      <description>&lt;P&gt;Those kinds of operations are not consistent with the Ansible philosophy, which is why we do not provide them.&lt;BR /&gt;I provide a more detailed answer here:&lt;BR /&gt;&lt;A href="https://community.checkpoint.com/t5/Ansible/Ansible-Add-Host-Object-to-Existing-Network-Group/m-p/125530/highlight/true#M570" target="_blank"&gt;https://community.checkpoint.com/t5/Ansible/Ansible-Add-Host-Object-to-Existing-Network-Group/m-p/125530/highlight/true#M570&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 20 Aug 2021 23:41:20 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Ansible/Ansible-Remove-Host-object-from-Group/m-p/127590#M577</guid>
      <dc:creator>PhoneBoy</dc:creator>
      <dc:date>2021-08-20T23:41:20Z</dc:date>
    </item>
  </channel>
</rss>

