<?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 - Add Host Object to Existing Network Group in Ansible</title>
    <link>https://community.checkpoint.com/t5/Ansible/Ansible-Add-Host-Object-to-Existing-Network-Group/m-p/133135#M613</link>
    <description>&lt;P&gt;To be honest...only Check Point would be able to come up with such mindset like adding is less destructive than removing. The thing is that the guys who worked on the modules came up only with half of the solution. It's basic functionality to be able to add or remove elements to groups.&lt;/P&gt;&lt;P&gt;I can't wait to switch to another vendor as the Check Point way of doing things, from lots of obscure log files, debugs and commands, to all the bugs and millions of HFs and JHFs that come up like mushrooms after the rain is not right at all. Wasted half of a day to figure out how to remove an object from a group...&lt;/P&gt;</description>
    <pubDate>Wed, 03 Nov 2021 12:46:45 GMT</pubDate>
    <dc:creator>Liviu_Munteanu</dc:creator>
    <dc:date>2021-11-03T12:46:45Z</dc:date>
    <item>
      <title>Ansible - Add Host Object to Existing Network Group</title>
      <link>https://community.checkpoint.com/t5/Ansible/Ansible-Add-Host-Object-to-Existing-Network-Group/m-p/125521#M567</link>
      <description>&lt;P&gt;Hi Checkmates,&lt;/P&gt;&lt;P&gt;Is it possible to use the Ansible check_point.mgmt.cp_mgmt_group module to add a host object to an existing group, retaining the existing members?&amp;nbsp;&lt;/P&gt;&lt;P&gt;The can be done using the mgmt set group api call i.e.&amp;nbsp;mgmt_cli set group name "New Group 1" members.add "New Host 2"&lt;/P&gt;&lt;P&gt;The set group API endpoint has the add and remove methods on the members parameter&lt;/P&gt;&lt;P&gt;&lt;A href="https://sc1.checkpoint.com/documents/latest/APIs/?#cli/set-group~v1.8%20" target="_blank"&gt;https://sc1.checkpoint.com/documents/latest/APIs/?#cli/set-group~v1.8%20&lt;/A&gt;&lt;/P&gt;&lt;P&gt;But in the Ansible&amp;nbsp;check_point.mgmt.cp_mgmt_group documentation the add and remove methods are not there.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.ansible.com/ansible/latest/collections/check_point/mgmt/cp_mgmt_group_module.html" target="_blank"&gt;https://docs.ansible.com/ansible/latest/collections/check_point/mgmt/cp_mgmt_group_module.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Below is an example playbook.&lt;/P&gt;&lt;P&gt;The following runs but doesn't retain the existing members of the group. It removes the existing members and only adds those members specified.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN class="p p-Indicator"&gt;-&lt;/SPAN&gt; &lt;SPAN class="nt"&gt;name&lt;/SPAN&gt;&lt;SPAN class="p"&gt;:&lt;/SPAN&gt; &lt;SPAN class="l l-Scalar l-Scalar-Plain"&gt;set-group&lt;/SPAN&gt;
  &lt;SPAN class="nt"&gt;cp_mgmt_group&lt;/SPAN&gt;&lt;SPAN class="p"&gt;:&lt;/SPAN&gt;
    &lt;SPAN class="nt"&gt;members&lt;/SPAN&gt;&lt;SPAN class="p"&gt;:&lt;/SPAN&gt;
    &lt;SPAN class="p p-Indicator"&gt;-&lt;/SPAN&gt; &lt;SPAN class="l l-Scalar l-Scalar-Plain"&gt;New Host 1&lt;/SPAN&gt;
    &lt;SPAN class="p p-Indicator"&gt;-&lt;/SPAN&gt; &lt;SPAN class="l l-Scalar l-Scalar-Plain"&gt;My Test Host 3&lt;/SPAN&gt;
    &lt;SPAN class="nt"&gt;name&lt;/SPAN&gt;&lt;SPAN class="p"&gt;:&lt;/SPAN&gt; &lt;SPAN class="l l-Scalar l-Scalar-Plain"&gt;New Group 5&lt;/SPAN&gt;
    &lt;SPAN class="nt"&gt;state&lt;/SPAN&gt;&lt;SPAN class="p"&gt;:&lt;/SPAN&gt; &lt;SPAN class="l l-Scalar l-Scalar-Plain"&gt;present&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Simon&lt;/P&gt;</description>
      <pubDate>Tue, 03 Aug 2021 02:41:49 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Ansible/Ansible-Add-Host-Object-to-Existing-Network-Group/m-p/125521#M567</guid>
      <dc:creator>Simon_Macpherso</dc:creator>
      <dc:date>2021-08-03T02:41:49Z</dc:date>
    </item>
    <item>
      <title>Re: Ansible - Add Host Object to Existing Network Group</title>
      <link>https://community.checkpoint.com/t5/Ansible/Ansible-Add-Host-Object-to-Existing-Network-Group/m-p/125522#M568</link>
      <description>&lt;P&gt;If you define any sort of object in Ansible, the configuration of that object will be as described in Ansible.&amp;nbsp;&lt;BR /&gt;It also means you cannot use&amp;nbsp;Ansible to manipulate objects not defined in Ansible.&lt;BR /&gt;This includes groups and is by design.&lt;/P&gt;</description>
      <pubDate>Tue, 03 Aug 2021 02:52:38 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Ansible/Ansible-Add-Host-Object-to-Existing-Network-Group/m-p/125522#M568</guid>
      <dc:creator>PhoneBoy</dc:creator>
      <dc:date>2021-08-03T02:52:38Z</dc:date>
    </item>
    <item>
      <title>Re: Ansible - Add Host Object to Existing Network Group</title>
      <link>https://community.checkpoint.com/t5/Ansible/Ansible-Add-Host-Object-to-Existing-Network-Group/m-p/125529#M569</link>
      <description>&lt;P&gt;So I can't add a new host object, defined in Ansible referenced by the host UID, to an existing network group, referenced by name, retaining the existing group membership?&lt;/P&gt;&lt;P&gt;In other words, all changes I want to make have to be defined in the current playbook. And all changes that aren't defined will be purged? I can see the purpose of that and it would be useful if that is what your requirement was i.e. baselining group access. But it also seems like a limitation.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to integrate our CMS with Ansible/AWX to automate updating of network group membership. The groups already have existing host members and these need to be retained when the group is updated.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 03 Aug 2021 03:49:16 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Ansible/Ansible-Add-Host-Object-to-Existing-Network-Group/m-p/125529#M569</guid>
      <dc:creator>Simon_Macpherso</dc:creator>
      <dc:date>2021-08-03T03:49:16Z</dc:date>
    </item>
    <item>
      <title>Re: Ansible - Add Host Object to Existing Network Group</title>
      <link>https://community.checkpoint.com/t5/Ansible/Ansible-Add-Host-Object-to-Existing-Network-Group/m-p/125530#M570</link>
      <description>&lt;P&gt;&lt;SPAN&gt;&lt;A href="https://www.ansible.com/use-cases/configuration-management" target="_self"&gt;From the Ansible website&lt;/A&gt;:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="lia-indent-padding-left-30px"&gt;&lt;SPAN&gt;Ansible features an state-driven resource model that describes the desired state of computer systems and services, not the paths to get them to this state. No matter what state a system is in, Ansible understands how to transform it to the desired state (and also supports a "dry run" mode to preview needed changes). This allows reliable and repeatable IT infrastructure configuration, avoiding the potential failures from scripting and script-based solutions that describe explicit and often irreversible actions rather than the end goal.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;In other words, an Anisible playbook describes what you want the end state to be, not how you want the state to be manipulated.&lt;BR /&gt;Manipulating objects that exist outside of Ansible is not consistent with the Ansible philosophy.&lt;BR /&gt;This is why our module does not provide these functions.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;If you want to manipulate existing objects without redefining them entirely in Ansible, the REST API might be a better choice.&amp;nbsp;&lt;SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 03 Aug 2021 04:25:21 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Ansible/Ansible-Add-Host-Object-to-Existing-Network-Group/m-p/125530#M570</guid>
      <dc:creator>PhoneBoy</dc:creator>
      <dc:date>2021-08-03T04:25:21Z</dc:date>
    </item>
    <item>
      <title>Re: Ansible - Add Host Object to Existing Network Group</title>
      <link>https://community.checkpoint.com/t5/Ansible/Ansible-Add-Host-Object-to-Existing-Network-Group/m-p/125531#M571</link>
      <description>&lt;P&gt;I understand its &lt;SPAN&gt;declarative&amp;nbsp;&lt;/SPAN&gt;and the benefits that are attached to that.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'll try to achieve this another way.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 03 Aug 2021 04:32:57 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Ansible/Ansible-Add-Host-Object-to-Existing-Network-Group/m-p/125531#M571</guid>
      <dc:creator>Simon_Macpherso</dc:creator>
      <dc:date>2021-08-03T04:32:57Z</dc:date>
    </item>
    <item>
      <title>Re: Ansible - Add Host Object to Existing Network Group</title>
      <link>https://community.checkpoint.com/t5/Ansible/Ansible-Add-Host-Object-to-Existing-Network-Group/m-p/127684#M578</link>
      <description>&lt;P&gt;In ansible, I can add an object to an existent group created via smartconsole with:&lt;BR /&gt;&lt;BR /&gt;---&lt;BR /&gt;- hosts: check_point&lt;BR /&gt;connection: httpapi&lt;BR /&gt;tasks:&lt;BR /&gt;- name: set-session&lt;BR /&gt;check_point.mgmt.cp_mgmt_set_session:&lt;BR /&gt;description: "api test"&lt;BR /&gt;new_name: "api test"&lt;BR /&gt;- name: Create host object&lt;BR /&gt;cp_mgmt_host:&lt;BR /&gt;color: dark green&lt;BR /&gt;ipv4_address: 192.0.2.2&lt;BR /&gt;groups: [ group1 ]&lt;BR /&gt;name: ansibletest1&lt;BR /&gt;state: present&lt;BR /&gt;auto_publish_session: true&lt;/P&gt;&lt;P&gt;I would expect to be able to delete from the group with something like this.&amp;nbsp; It is totally compatible with the ansible philosophy, isn't it? And it make sense to allow revert&amp;nbsp; an action executed in ansible.&lt;/P&gt;&lt;P&gt;The execution of the command is actually successful but it doesn't do anything.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;---&lt;BR /&gt;- hosts: check_point&lt;BR /&gt;connection: httpapi&lt;BR /&gt;tasks:&lt;BR /&gt;- name: set-session&lt;BR /&gt;check_point.mgmt.cp_mgmt_set_session:&lt;BR /&gt;description: "api test"&lt;BR /&gt;new_name: "api test"&lt;BR /&gt;- name: Delete host object&lt;BR /&gt;cp_mgmt_host:&lt;BR /&gt;name: ansibletest1&lt;BR /&gt;groups: [ ]&lt;BR /&gt;state: prensent&lt;BR /&gt;auto_publish_session: true&lt;/P&gt;</description>
      <pubDate>Mon, 23 Aug 2021 09:02:40 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Ansible/Ansible-Add-Host-Object-to-Existing-Network-Group/m-p/127684#M578</guid>
      <dc:creator>Luis_Miguel_Mig</dc:creator>
      <dc:date>2021-08-23T09:02:40Z</dc:date>
    </item>
    <item>
      <title>Re: Ansible - Add Host Object to Existing Network Group</title>
      <link>https://community.checkpoint.com/t5/Ansible/Ansible-Add-Host-Object-to-Existing-Network-Group/m-p/127715#M579</link>
      <description>&lt;P&gt;In the case of an existing group, adding an object is fairly straightforward and not as destructive as removing an object from an existing group.&amp;nbsp;&lt;BR /&gt;A human could have easily added that object and Ansible would have no way of knowing that was the case.&lt;/P&gt;
&lt;P&gt;Bottom line: Don’t use Ansible to modify pre-existing objects.&lt;/P&gt;</description>
      <pubDate>Mon, 23 Aug 2021 16:12:14 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Ansible/Ansible-Add-Host-Object-to-Existing-Network-Group/m-p/127715#M579</guid>
      <dc:creator>PhoneBoy</dc:creator>
      <dc:date>2021-08-23T16:12:14Z</dc:date>
    </item>
    <item>
      <title>Re: Ansible - Add Host Object to Existing Network Group</title>
      <link>https://community.checkpoint.com/t5/Ansible/Ansible-Add-Host-Object-to-Existing-Network-Group/m-p/127716#M580</link>
      <description>&lt;P&gt;My point was that I still don't understand why something like this doesn't work to reset a host:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;---&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- hosts: check_point&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;connection: httpapi&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;tasks:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- name: set-session&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;check_point.mgmt.cp_mgmt_set_session:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;description: "api test"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;new_name: "api test"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- name: Delete host object&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;cp_mgmt_host:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;name: ansibletest1&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;groups: [ ]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;state: present&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;auto_publish_session: true&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 23 Aug 2021 16:17:30 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Ansible/Ansible-Add-Host-Object-to-Existing-Network-Group/m-p/127716#M580</guid>
      <dc:creator>Luis_Miguel_Mig</dc:creator>
      <dc:date>2021-08-23T16:17:30Z</dc:date>
    </item>
    <item>
      <title>Re: Ansible - Add Host Object to Existing Network Group</title>
      <link>https://community.checkpoint.com/t5/Ansible/Ansible-Add-Host-Object-to-Existing-Network-Group/m-p/127717#M581</link>
      <description>&lt;P&gt;Ansible is using modules, not directly performing API calls. Modules for ansible are developed by R&amp;amp;D, which has also other, sometimes more important tasks. I would raise an RFE for this if I were you.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 23 Aug 2021 16:42:09 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Ansible/Ansible-Add-Host-Object-to-Existing-Network-Group/m-p/127717#M581</guid>
      <dc:creator>_Val_</dc:creator>
      <dc:date>2021-08-23T16:42:09Z</dc:date>
    </item>
    <item>
      <title>Re: Ansible - Add Host Object to Existing Network Group</title>
      <link>https://community.checkpoint.com/t5/Ansible/Ansible-Add-Host-Object-to-Existing-Network-Group/m-p/127719#M582</link>
      <description>&lt;P&gt;Luis,&lt;BR /&gt;I just tested that against API version 1.7.1 and it works as expected.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Kind regards,&lt;BR /&gt;Art Zalenekas&lt;/P&gt;</description>
      <pubDate>Mon, 23 Aug 2021 17:43:09 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Ansible/Ansible-Add-Host-Object-to-Existing-Network-Group/m-p/127719#M582</guid>
      <dc:creator>Art_Zalenekas</dc:creator>
      <dc:date>2021-08-23T17:43:09Z</dc:date>
    </item>
    <item>
      <title>Re: Ansible - Add Host Object to Existing Network Group</title>
      <link>https://community.checkpoint.com/t5/Ansible/Ansible-Add-Host-Object-to-Existing-Network-Group/m-p/127802#M583</link>
      <description>&lt;P&gt;What do you mean by expected? What have you tested?&lt;BR /&gt;If I call set-host with these parameters below , the execution seems to be successful, but it doesn't actually do anything. I would expect ansibletest1 host to belong to no group after setting groups to []&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;"name"&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;:&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;"ansibletest1"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;"groups"&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;:&amp;nbsp;[&amp;nbsp;&amp;nbsp;]&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 24 Aug 2021 09:10:12 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Ansible/Ansible-Add-Host-Object-to-Existing-Network-Group/m-p/127802#M583</guid>
      <dc:creator>Luis_Miguel_Mig</dc:creator>
      <dc:date>2021-08-24T09:10:12Z</dc:date>
    </item>
    <item>
      <title>Re: Ansible - Add Host Object to Existing Network Group</title>
      <link>https://community.checkpoint.com/t5/Ansible/Ansible-Add-Host-Object-to-Existing-Network-Group/m-p/127804#M584</link>
      <description>&lt;P&gt;Sorry I made a mistake publishing with the API.&lt;/P&gt;&lt;P&gt;So the previous example it works as you said.&lt;BR /&gt;&lt;BR /&gt;So it the api works for set-host&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;"name"&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;:&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;"ansibletest1"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;"groups"&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;:&amp;nbsp;[&amp;nbsp;&amp;nbsp;]&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;/DIV&gt;&lt;P&gt;&lt;BR /&gt;I don't understand why the following ansible task doesn't work.&amp;nbsp; It should work, right?&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;- name: Delete host object&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;cp_mgmt_host:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;name: ansibletest1&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;groups: [ ]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;state: present&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;auto_publish_session: true&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 24 Aug 2021 09:19:58 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Ansible/Ansible-Add-Host-Object-to-Existing-Network-Group/m-p/127804#M584</guid>
      <dc:creator>Luis_Miguel_Mig</dc:creator>
      <dc:date>2021-08-24T09:19:58Z</dc:date>
    </item>
    <item>
      <title>Re: Ansible - Add Host Object to Existing Network Group</title>
      <link>https://community.checkpoint.com/t5/Ansible/Ansible-Add-Host-Object-to-Existing-Network-Group/m-p/127871#M585</link>
      <description>&lt;P&gt;It should. I don't do auto_publish_session, I always use a handler for that that I notify. Also, I use ip_address too. Else, all the same and works on my side. Here is the code for adding to groups, and then if you keep empty&amp;nbsp;&lt;EM&gt;list&lt;/EM&gt; (&lt;STRONG&gt;[]&lt;/STRONG&gt;) then it will remove from all or some groups.&lt;/P&gt;
&lt;LI-CODE lang="java"&gt;---
- name: Test Playbook
  hosts: fw
  gather_facts: false
  connection: httpapi
  collections:
    - check_point.mgmt
  tasks:
    - name: Add network group
      cp_mgmt_group:
        name: '{{ item }}'
        state: present
        comments: 'test'
      loop:
        - gtest3
        - gtest4
      notify: publish
    - name: Add network object
      cp_mgmt_host:
        name: 'test3'
        ip_address: "192.0.2.1"
        state: present
        groups: ["gtest3", "gtest4"]
        comments: 'test'
      notify: publish

  handlers:
    - name: publish
      cp_mgmt_publish:&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 24 Aug 2021 15:17:34 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Ansible/Ansible-Add-Host-Object-to-Existing-Network-Group/m-p/127871#M585</guid>
      <dc:creator>Art_Zalenekas</dc:creator>
      <dc:date>2021-08-24T15:17:34Z</dc:date>
    </item>
    <item>
      <title>Re: Ansible - Add Host Object to Existing Network Group</title>
      <link>https://community.checkpoint.com/t5/Ansible/Ansible-Add-Host-Object-to-Existing-Network-Group/m-p/127873#M586</link>
      <description>&lt;P&gt;Thanks Zalenekas. It works this way.&lt;/P&gt;</description>
      <pubDate>Tue, 24 Aug 2021 15:37:25 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Ansible/Ansible-Add-Host-Object-to-Existing-Network-Group/m-p/127873#M586</guid>
      <dc:creator>Luis_Miguel_Mig</dc:creator>
      <dc:date>2021-08-24T15:37:25Z</dc:date>
    </item>
    <item>
      <title>Re: Ansible - Add Host Object to Existing Network Group</title>
      <link>https://community.checkpoint.com/t5/Ansible/Ansible-Add-Host-Object-to-Existing-Network-Group/m-p/128678#M587</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://community.checkpoint.com/t5/user/viewprofilepage/user-id/44647"&gt;@Art_Zalenekas&lt;/a&gt;.&lt;/P&gt;&lt;P&gt;I hadn't used loops in a playbook before.&lt;/P&gt;</description>
      <pubDate>Fri, 03 Sep 2021 01:05:02 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Ansible/Ansible-Add-Host-Object-to-Existing-Network-Group/m-p/128678#M587</guid>
      <dc:creator>Simon_Macpherso</dc:creator>
      <dc:date>2021-09-03T01:05:02Z</dc:date>
    </item>
    <item>
      <title>Re: Ansible - Add Host Object to Existing Network Group</title>
      <link>https://community.checkpoint.com/t5/Ansible/Ansible-Add-Host-Object-to-Existing-Network-Group/m-p/128679#M588</link>
      <description>&lt;P&gt;Thanks for your input&amp;nbsp;&lt;a href="https://community.checkpoint.com/t5/user/viewprofilepage/user-id/13317"&gt;@Luis_Miguel_Mig&lt;/a&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 03 Sep 2021 01:06:00 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Ansible/Ansible-Add-Host-Object-to-Existing-Network-Group/m-p/128679#M588</guid>
      <dc:creator>Simon_Macpherso</dc:creator>
      <dc:date>2021-09-03T01:06:00Z</dc:date>
    </item>
    <item>
      <title>Re: Ansible - Add Host Object to Existing Network Group</title>
      <link>https://community.checkpoint.com/t5/Ansible/Ansible-Add-Host-Object-to-Existing-Network-Group/m-p/128715#M589</link>
      <description>&lt;P&gt;You are welcome!&lt;BR /&gt;For me all about Automation is to make the most efficient calls. So instead of singular Task calls, I always try to make it as compact as possible, without increasing the complexity too much.&lt;/P&gt;
&lt;P&gt;If you have not worked with Ansible&amp;nbsp;&lt;EM&gt;loop&lt;/EM&gt; keyword before, take a look here:&lt;BR /&gt;&lt;A href="https://docs.ansible.com/ansible/latest/user_guide/playbooks_loops.html" target="_blank"&gt;https://docs.ansible.com/ansible/latest/user_guide/playbooks_loops.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Good luck and have fun with your Automation journey!&lt;BR /&gt;&lt;BR /&gt;Kind regards,&lt;BR /&gt;Art&lt;/P&gt;</description>
      <pubDate>Fri, 03 Sep 2021 14:30:50 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Ansible/Ansible-Add-Host-Object-to-Existing-Network-Group/m-p/128715#M589</guid>
      <dc:creator>Art_Zalenekas</dc:creator>
      <dc:date>2021-09-03T14:30:50Z</dc:date>
    </item>
    <item>
      <title>Re: Ansible - Add Host Object to Existing Network Group</title>
      <link>https://community.checkpoint.com/t5/Ansible/Ansible-Add-Host-Object-to-Existing-Network-Group/m-p/128778#M590</link>
      <description>&lt;P&gt;I think it would be&amp;nbsp; nice if ansible supported the&amp;nbsp; api&amp;nbsp; set-host groups "add" option.&lt;BR /&gt;I am deploying&amp;nbsp; a bit of code in ansible to check if the host belongs to any group and if it does I add the new group to the list of groups.&lt;BR /&gt;&lt;BR /&gt;But instead of us deploying that little code I think it would be nicer if the collection was able to do it directly.&lt;/P&gt;</description>
      <pubDate>Mon, 06 Sep 2021 11:16:04 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Ansible/Ansible-Add-Host-Object-to-Existing-Network-Group/m-p/128778#M590</guid>
      <dc:creator>Luis_Miguel_Mig</dc:creator>
      <dc:date>2021-09-06T11:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Ansible - Add Host Object to Existing Network Group</title>
      <link>https://community.checkpoint.com/t5/Ansible/Ansible-Add-Host-Object-to-Existing-Network-Group/m-p/133135#M613</link>
      <description>&lt;P&gt;To be honest...only Check Point would be able to come up with such mindset like adding is less destructive than removing. The thing is that the guys who worked on the modules came up only with half of the solution. It's basic functionality to be able to add or remove elements to groups.&lt;/P&gt;&lt;P&gt;I can't wait to switch to another vendor as the Check Point way of doing things, from lots of obscure log files, debugs and commands, to all the bugs and millions of HFs and JHFs that come up like mushrooms after the rain is not right at all. Wasted half of a day to figure out how to remove an object from a group...&lt;/P&gt;</description>
      <pubDate>Wed, 03 Nov 2021 12:46:45 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Ansible/Ansible-Add-Host-Object-to-Existing-Network-Group/m-p/133135#M613</guid>
      <dc:creator>Liviu_Munteanu</dc:creator>
      <dc:date>2021-11-03T12:46:45Z</dc:date>
    </item>
    <item>
      <title>Re: Ansible - Add Host Object to Existing Network Group</title>
      <link>https://community.checkpoint.com/t5/Ansible/Ansible-Add-Host-Object-to-Existing-Network-Group/m-p/133146#M614</link>
      <description>&lt;P&gt;Thank you for your opinion.&lt;/P&gt;
&lt;P&gt;I personally think it may deserve a separate post. At least, it would look much better than hijacking someone else's discussion, to express your frustration.&lt;/P&gt;</description>
      <pubDate>Wed, 03 Nov 2021 14:31:35 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Ansible/Ansible-Add-Host-Object-to-Existing-Network-Group/m-p/133146#M614</guid>
      <dc:creator>_Val_</dc:creator>
      <dc:date>2021-11-03T14:31:35Z</dc:date>
    </item>
  </channel>
</rss>

