<?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 how I can gather in which rule is defined a group object with ansible cp_mgmt_group_facts in Ansible</title>
    <link>https://community.checkpoint.com/t5/Ansible/how-I-can-gather-in-which-rule-is-defined-a-group-object-with/m-p/71321#M198</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I'm using ansible&amp;nbsp;to automate a lot of manual task, it works well for the moment but I'm not able to retrieve the information of rule name when I use&amp;nbsp;cp_mgmt_group_facts (like whereused with smartdashboard),&amp;nbsp;below the output of the json :&lt;/P&gt;&lt;P&gt;ok: [localhost] =&amp;gt; {&lt;BR /&gt;"host_facts": {&lt;BR /&gt;"ansible_facts": {&lt;BR /&gt;"host": {&lt;BR /&gt;"color": "black",&lt;BR /&gt;"comments": "",&lt;BR /&gt;"domain": {&lt;BR /&gt;"domain-type": "domain",&lt;BR /&gt;"name": "SMC User",&lt;BR /&gt;"uid": "41e821a0-3720-11e3-aa6e-0800200c9fde"&lt;BR /&gt;},&lt;BR /&gt;"groups": [&lt;BR /&gt;{&lt;BR /&gt;"domain": {&lt;BR /&gt;"domain-type": "domain",&lt;BR /&gt;"name": "SMC User",&lt;BR /&gt;"uid": "41e821a0-3720-11e3-aa6e-0800200c9fde"&lt;BR /&gt;},&lt;BR /&gt;"name": "Demo",&lt;BR /&gt;"type": "group",&lt;BR /&gt;"uid": "8ab21516-39e7-4507-9312-636631d6c5de"&lt;BR /&gt;}&lt;BR /&gt;],&lt;BR /&gt;"icon": "Objects/host",&lt;BR /&gt;"interfaces": [],&lt;BR /&gt;"ipv4-address": "104.45.16.183",&lt;BR /&gt;"meta-info": {&lt;BR /&gt;"creation-time": {&lt;BR /&gt;"iso-8601": "2019-12-15T07:07+0100",&lt;BR /&gt;"posix": 1576390077465&lt;BR /&gt;},&lt;BR /&gt;"creator": "admin",&lt;BR /&gt;"last-modifier": "admin",&lt;BR /&gt;"last-modify-time": {&lt;BR /&gt;"iso-8601": "2019-12-15T07:07+0100",&lt;BR /&gt;"posix": 1576390077465&lt;BR /&gt;},&lt;BR /&gt;"lock": "unlocked",&lt;BR /&gt;"validation-state": "ok"&lt;BR /&gt;},&lt;BR /&gt;"name": "h-az-104.45.16.183",&lt;BR /&gt;"nat-settings": {&lt;BR /&gt;"auto-rule": false&lt;BR /&gt;},&lt;BR /&gt;"read-only": false,&lt;BR /&gt;"tags": [],&lt;BR /&gt;"type": "host",&lt;BR /&gt;"uid": "15e386c6-4ef3-4155-903d-579707171494"&lt;BR /&gt;}&lt;BR /&gt;},&lt;BR /&gt;"changed": false,&lt;BR /&gt;"failed": false&lt;BR /&gt;}&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I test also with&amp;nbsp;&lt;STRONG&gt;details_level :&amp;nbsp;&lt;SPAN&gt;full&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;is there any simple way to retrieve this information without retrieving all the rule base and check on source and destination of each rule &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;</description>
    <pubDate>Sun, 29 Dec 2019 15:38:22 GMT</pubDate>
    <dc:creator>mbouri</dc:creator>
    <dc:date>2019-12-29T15:38:22Z</dc:date>
    <item>
      <title>how I can gather in which rule is defined a group object with ansible cp_mgmt_group_facts</title>
      <link>https://community.checkpoint.com/t5/Ansible/how-I-can-gather-in-which-rule-is-defined-a-group-object-with/m-p/71321#M198</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I'm using ansible&amp;nbsp;to automate a lot of manual task, it works well for the moment but I'm not able to retrieve the information of rule name when I use&amp;nbsp;cp_mgmt_group_facts (like whereused with smartdashboard),&amp;nbsp;below the output of the json :&lt;/P&gt;&lt;P&gt;ok: [localhost] =&amp;gt; {&lt;BR /&gt;"host_facts": {&lt;BR /&gt;"ansible_facts": {&lt;BR /&gt;"host": {&lt;BR /&gt;"color": "black",&lt;BR /&gt;"comments": "",&lt;BR /&gt;"domain": {&lt;BR /&gt;"domain-type": "domain",&lt;BR /&gt;"name": "SMC User",&lt;BR /&gt;"uid": "41e821a0-3720-11e3-aa6e-0800200c9fde"&lt;BR /&gt;},&lt;BR /&gt;"groups": [&lt;BR /&gt;{&lt;BR /&gt;"domain": {&lt;BR /&gt;"domain-type": "domain",&lt;BR /&gt;"name": "SMC User",&lt;BR /&gt;"uid": "41e821a0-3720-11e3-aa6e-0800200c9fde"&lt;BR /&gt;},&lt;BR /&gt;"name": "Demo",&lt;BR /&gt;"type": "group",&lt;BR /&gt;"uid": "8ab21516-39e7-4507-9312-636631d6c5de"&lt;BR /&gt;}&lt;BR /&gt;],&lt;BR /&gt;"icon": "Objects/host",&lt;BR /&gt;"interfaces": [],&lt;BR /&gt;"ipv4-address": "104.45.16.183",&lt;BR /&gt;"meta-info": {&lt;BR /&gt;"creation-time": {&lt;BR /&gt;"iso-8601": "2019-12-15T07:07+0100",&lt;BR /&gt;"posix": 1576390077465&lt;BR /&gt;},&lt;BR /&gt;"creator": "admin",&lt;BR /&gt;"last-modifier": "admin",&lt;BR /&gt;"last-modify-time": {&lt;BR /&gt;"iso-8601": "2019-12-15T07:07+0100",&lt;BR /&gt;"posix": 1576390077465&lt;BR /&gt;},&lt;BR /&gt;"lock": "unlocked",&lt;BR /&gt;"validation-state": "ok"&lt;BR /&gt;},&lt;BR /&gt;"name": "h-az-104.45.16.183",&lt;BR /&gt;"nat-settings": {&lt;BR /&gt;"auto-rule": false&lt;BR /&gt;},&lt;BR /&gt;"read-only": false,&lt;BR /&gt;"tags": [],&lt;BR /&gt;"type": "host",&lt;BR /&gt;"uid": "15e386c6-4ef3-4155-903d-579707171494"&lt;BR /&gt;}&lt;BR /&gt;},&lt;BR /&gt;"changed": false,&lt;BR /&gt;"failed": false&lt;BR /&gt;}&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I test also with&amp;nbsp;&lt;STRONG&gt;details_level :&amp;nbsp;&lt;SPAN&gt;full&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;is there any simple way to retrieve this information without retrieving all the rule base and check on source and destination of each rule &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;</description>
      <pubDate>Sun, 29 Dec 2019 15:38:22 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Ansible/how-I-can-gather-in-which-rule-is-defined-a-group-object-with/m-p/71321#M198</guid>
      <dc:creator>mbouri</dc:creator>
      <dc:date>2019-12-29T15:38:22Z</dc:date>
    </item>
    <item>
      <title>Re: how I can gather in which rule is defined a group object with ansible cp_mgmt_group_facts</title>
      <link>https://community.checkpoint.com/t5/Ansible/how-I-can-gather-in-which-rule-is-defined-a-group-object-with/m-p/71323#M199</link>
      <description>I believe the rule name will be easier to parse out making the call with the option use-object-dictionary false.&lt;BR /&gt;To show the contents of each rule you may still need to query it directly.</description>
      <pubDate>Sun, 29 Dec 2019 17:42:36 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Ansible/how-I-can-gather-in-which-rule-is-defined-a-group-object-with/m-p/71323#M199</guid>
      <dc:creator>PhoneBoy</dc:creator>
      <dc:date>2019-12-29T17:42:36Z</dc:date>
    </item>
    <item>
      <title>Re: how I can gather in which rule is defined a group object with ansible cp_mgmt_group_facts</title>
      <link>https://community.checkpoint.com/t5/Ansible/how-I-can-gather-in-which-rule-is-defined-a-group-object-with/m-p/71859#M200</link>
      <description>&lt;P&gt;Thank you for your reply, but we have migration project to change the some goup used on policy and duplicate the rule in order to use the new object and disable the old rule, and for that we need to know in which rule these group are used. the only solution I have for the moment is to parse all the policy rule (thousand of rule) and check for each rule if the group is configured on source and destination, I would like to know if this feature (specify on with rule the object is configured with the gather_fact module ) will be included on the new ansible release ?&amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;</description>
      <pubDate>Wed, 08 Jan 2020 13:43:18 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Ansible/how-I-can-gather-in-which-rule-is-defined-a-group-object-with/m-p/71859#M200</guid>
      <dc:creator>mbouri</dc:creator>
      <dc:date>2020-01-08T13:43:18Z</dc:date>
    </item>
    <item>
      <title>Re: how I can gather in which rule is defined a group object with ansible cp_mgmt_group_facts</title>
      <link>https://community.checkpoint.com/t5/Ansible/how-I-can-gather-in-which-rule-is-defined-a-group-object-with/m-p/71892#M201</link>
      <description>What is the precise playbook you’re using?</description>
      <pubDate>Wed, 08 Jan 2020 23:36:50 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Ansible/how-I-can-gather-in-which-rule-is-defined-a-group-object-with/m-p/71892#M201</guid>
      <dc:creator>PhoneBoy</dc:creator>
      <dc:date>2020-01-08T23:36:50Z</dc:date>
    </item>
    <item>
      <title>Re: how I can gather in which rule is defined a group object with ansible cp_mgmt_group_facts</title>
      <link>https://community.checkpoint.com/t5/Ansible/how-I-can-gather-in-which-rule-is-defined-a-group-object-with/m-p/72054#M202</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I found solution with the command : where-used fo the module check_point_mgmt&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 10 Jan 2020 13:21:45 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Ansible/how-I-can-gather-in-which-rule-is-defined-a-group-object-with/m-p/72054#M202</guid>
      <dc:creator>mbouri</dc:creator>
      <dc:date>2020-01-10T13:21:45Z</dc:date>
    </item>
  </channel>
</rss>

