<?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: Deploy Via Ansible on FMC in Network Security</title>
    <link>https://community.cisco.com/t5/network-security/deploy-via-ansible-on-fmc/m-p/5290036#M578</link>
    <description>&lt;P&gt;Ansible only makes changes when it needs to. In this case the new NAT rule already exists, so it doesn't need to create them and skips the step.&lt;/P&gt;</description>
    <pubDate>Mon, 12 May 2025 18:13:54 GMT</pubDate>
    <dc:creator>Torbjørn</dc:creator>
    <dc:date>2025-05-12T18:13:54Z</dc:date>
    <item>
      <title>Deploy Via Ansible on FMC</title>
      <link>https://community.cisco.com/t5/network-security/deploy-via-ansible-on-fmc/m-p/5287856#M553</link>
      <description>&lt;P&gt;Hello Team,&lt;/P&gt;
&lt;P&gt;Been trying to use ansible on FMC 7.4.5, to update host objects and manual NATs.&lt;BR /&gt;1. Been able to update&amp;nbsp; the host objects, but having challenges on the deployment of the same.&lt;BR /&gt;This is because, from the GUI, when I want to deploy, there is a prompt to ignore some warnings , not errors. How do you cater for this warnings from the ansible playbook, not to stop the playbook from running.&lt;/P&gt;
&lt;P&gt;2. On the updating the manual NATs, i need assistance, not able to have it running.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;</description>
      <pubDate>Mon, 05 May 2025 11:08:41 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-security/deploy-via-ansible-on-fmc/m-p/5287856#M553</guid>
      <dc:creator>fmugambi</dc:creator>
      <dc:date>2025-05-05T11:08:41Z</dc:date>
    </item>
    <item>
      <title>Re: Deploy Via Ansible on FMC</title>
      <link>https://community.cisco.com/t5/network-security/deploy-via-ansible-on-fmc/m-p/5288117#M554</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.cisco.com/t5/user/viewprofilepage/user-id/1556185"&gt;@fmugambi&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;1. You need to add "ignoreWarning: True" to your createDeploymentRequest step.&amp;nbsp;See the following example from the &lt;A href="https://github.com/CiscoDevNet/FMCAnsible/blob/9b5dccf7c6ba6dcb75e2c073fb8b5f4bcaec5ca0/samples/docs/operations/create_deployment_request.md" target="_blank"&gt;Github repository&lt;/A&gt;:&lt;/P&gt;
&lt;PRE&gt;- &lt;SPAN class="pl-ent"&gt;name&lt;/SPAN&gt;: &lt;SPAN class="pl-s"&gt;Execute 'createDeploymentRequest' operation&lt;/SPAN&gt;
  &lt;SPAN class="pl-ent"&gt;cisco.fmcansible.fmc_configuration&lt;/SPAN&gt;:
    &lt;SPAN class="pl-ent"&gt;operation&lt;/SPAN&gt;: &lt;SPAN class="pl-s"&gt;&lt;SPAN class="pl-pds"&gt;"&lt;/SPAN&gt;createDeploymentRequest&lt;SPAN class="pl-pds"&gt;"&lt;/SPAN&gt;&lt;/SPAN&gt;
    &lt;SPAN class="pl-ent"&gt;data&lt;/SPAN&gt;:
        &lt;SPAN class="pl-ent"&gt;type&lt;/SPAN&gt;: &lt;SPAN class="pl-s"&gt;DeploymentRequest&lt;/SPAN&gt;
        &lt;SPAN class="pl-ent"&gt;version&lt;/SPAN&gt;: &lt;SPAN class="pl-c1"&gt;1457566762351&lt;/SPAN&gt;
        &lt;SPAN class="pl-ent"&gt;forceDeploy&lt;/SPAN&gt;: &lt;SPAN class="pl-c1"&gt;False&lt;/SPAN&gt;
        &lt;SPAN class="pl-ent"&gt;ignoreWarning&lt;/SPAN&gt;: &lt;SPAN class="pl-c1"&gt;True&lt;/SPAN&gt;
        &lt;SPAN class="pl-ent"&gt;deviceList&lt;/SPAN&gt;: &lt;SPAN class="pl-s"&gt;['d94f7ada-d141-11e5-acf3-c41f7e67fb1b']&lt;/SPAN&gt;
        &lt;SPAN class="pl-ent"&gt;deploymentNote&lt;/SPAN&gt;: &lt;SPAN class="pl-s"&gt;yournotescomehere&lt;/SPAN&gt;
    &lt;SPAN class="pl-ent"&gt;path_params&lt;/SPAN&gt;:
        &lt;SPAN class="pl-ent"&gt;domainUUID&lt;/SPAN&gt;: &lt;SPAN class="pl-s"&gt;&lt;SPAN class="pl-pds"&gt;"&lt;/SPAN&gt;{{ domain_uuid }}&lt;SPAN class="pl-pds"&gt;"&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/PRE&gt;
&lt;P&gt;2. Can you elaborate here, I am not sure that I am interpreting your issue correctly.&lt;/P&gt;</description>
      <pubDate>Tue, 06 May 2025 07:28:12 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-security/deploy-via-ansible-on-fmc/m-p/5288117#M554</guid>
      <dc:creator>Torbjørn</dc:creator>
      <dc:date>2025-05-06T07:28:12Z</dc:date>
    </item>
    <item>
      <title>Re: Deploy Via Ansible on FMC</title>
      <link>https://community.cisco.com/t5/network-security/deploy-via-ansible-on-fmc/m-p/5288237#M555</link>
      <description>&lt;P&gt;First of all, thankyou very much, problem 1 worked end-to-end.&lt;/P&gt;
&lt;P&gt;On problem 2, i have nat config as below,with the respective objects;&lt;/P&gt;
&lt;P&gt;nat (Inside,Outside) source static PROD-K8S-LOCAL -PROD-K8S-NAT description PROD-IPS&lt;/P&gt;
&lt;P&gt;object-group network PROD-K8S-LOCAL&lt;BR /&gt;description PRODUCTION K8S NODES&lt;BR /&gt;network-object 192.168.45.150 255.255.255.255&lt;BR /&gt;network-object 192.168.45.203 255.255.255.255&lt;BR /&gt;network-object 192.168.45.205 255.255.255.255&lt;BR /&gt;network-object 192.168.45.45.207 255.255.255.255&lt;/P&gt;
&lt;P&gt;object network PROD-K8S-NAT&lt;BR /&gt;host 100.169.239.177&lt;BR /&gt;&lt;BR /&gt;I would like to use ansible to change the source nat pool to a different group , as below ,&lt;/P&gt;
&lt;P&gt;nat (Inside,Outside) source static DR-PROD-K8S-LOCAL PROD-K8S-NAT description DR-PROD-IPS&lt;/P&gt;
&lt;P&gt;object-group network DR-PROD-K8S-LOCAL&lt;BR /&gt;description DR-PRODUCTION K8S NODES&lt;BR /&gt;network-object 192.168.40.150 255.255.255.255&lt;BR /&gt;network-object 192.168.40.203 255.255.255.255&lt;BR /&gt;network-object 192.168.40.205 255.255.255.255&lt;BR /&gt;network-object 192.168.40.45.207 255.255.255.255&lt;BR /&gt;&lt;BR /&gt;Question,&amp;nbsp;&lt;BR /&gt;1. Is it possible to use same example as above to just change the group objects to the new source pool?&lt;BR /&gt;2. if we don't want to amend the objects, how can ansible change the NAT command as a whole, to change the source pool.&lt;BR /&gt;&lt;BR /&gt;Thank you.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 06 May 2025 13:41:28 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-security/deploy-via-ansible-on-fmc/m-p/5288237#M555</guid>
      <dc:creator>fmugambi</dc:creator>
      <dc:date>2025-05-06T13:41:28Z</dc:date>
    </item>
    <item>
      <title>Re: Deploy Via Ansible on FMC</title>
      <link>https://community.cisco.com/t5/network-security/deploy-via-ansible-on-fmc/m-p/5288281#M556</link>
      <description>&lt;P&gt;1. It should be fine to just alter the NAT rule for the new object.&amp;nbsp;&lt;BR /&gt;2. You can only have one NAT rule for a given destination object, you must hence either alter or replace the existing NAT rule fully.&lt;/P&gt;</description>
      <pubDate>Tue, 06 May 2025 15:31:31 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-security/deploy-via-ansible-on-fmc/m-p/5288281#M556</guid>
      <dc:creator>Torbjørn</dc:creator>
      <dc:date>2025-05-06T15:31:31Z</dc:date>
    </item>
    <item>
      <title>Re: Deploy Via Ansible on FMC</title>
      <link>https://community.cisco.com/t5/network-security/deploy-via-ansible-on-fmc/m-p/5288307#M557</link>
      <description>&lt;P&gt;Please help with the ansible playbook for this.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 06 May 2025 16:32:36 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-security/deploy-via-ansible-on-fmc/m-p/5288307#M557</guid>
      <dc:creator>fmugambi</dc:creator>
      <dc:date>2025-05-06T16:32:36Z</dc:date>
    </item>
    <item>
      <title>Re: Deploy Via Ansible on FMC</title>
      <link>https://community.cisco.com/t5/network-security/deploy-via-ansible-on-fmc/m-p/5288333#M558</link>
      <description>&lt;P&gt;There's a sample for configuring NAT in &lt;A href="https://github.com/CiscoDevNet/FMCAnsible/blob/main/samples/test_nat.yml" target="_blank"&gt;the Ansible module Github repo&lt;/A&gt;. It's a good place to start.&lt;BR /&gt;If you need further assistance with this, can you post the relevant sections of your current playbook?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 06 May 2025 18:38:21 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-security/deploy-via-ansible-on-fmc/m-p/5288333#M558</guid>
      <dc:creator>Torbjørn</dc:creator>
      <dc:date>2025-05-06T18:38:21Z</dc:date>
    </item>
    <item>
      <title>Re: Deploy Via Ansible on FMC</title>
      <link>https://community.cisco.com/t5/network-security/deploy-via-ansible-on-fmc/m-p/5288609#M559</link>
      <description>&lt;P&gt;Hi, went ahead and configured the playbook,&lt;BR /&gt;getting attached error,&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="fmugambi_0-1746622101189.png" style="width: 400px;"&gt;&lt;img src="https://community.cisco.com/t5/image/serverpage/image-id/244682i5B4369C04E12AA68/image-size/medium?v=v2&amp;amp;px=400" role="button" title="fmugambi_0-1746622101189.png" alt="fmugambi_0-1746622101189.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;what operation do i need to invoke, note am doing a source pool to an external ip translation, then false on the outside interface.&lt;BR /&gt;below is the code where the output is complaining,&lt;/P&gt;
&lt;P&gt;- name: Get the Source Network Pool Object (Pointing-To-ADC)&lt;BR /&gt;cisco.fmcansible.fmc_configuration:&lt;BR /&gt;operation: getAllNetworkGroupObject&lt;BR /&gt;query_params:&lt;BR /&gt;filter: 'nameOrValue:PROD-K8S-LOCAL'&lt;BR /&gt;path_params:&lt;BR /&gt;domainUUID: '{{ domain[0].uuid }}'&lt;BR /&gt;register_as: source_network&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;- name: Get the translated network object&lt;BR /&gt;cisco.fmcansible.fmc_configuration:&lt;BR /&gt;operation: getAllNetworkGroupObject&lt;BR /&gt;query_params:&lt;BR /&gt;filter: 'nameOrValue:PROD-K8S-NAT'&lt;BR /&gt;path_params:&lt;BR /&gt;domainUUID: '{{ domain[0].uuid }}'&lt;BR /&gt;register_as: translated_network&lt;/P&gt;
&lt;P&gt;what could I be missing?&lt;/P&gt;</description>
      <pubDate>Wed, 07 May 2025 12:50:24 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-security/deploy-via-ansible-on-fmc/m-p/5288609#M559</guid>
      <dc:creator>fmugambi</dc:creator>
      <dc:date>2025-05-07T12:50:24Z</dc:date>
    </item>
    <item>
      <title>Re: Deploy Via Ansible on FMC</title>
      <link>https://community.cisco.com/t5/network-security/deploy-via-ansible-on-fmc/m-p/5288952#M560</link>
      <description>&lt;P&gt;You look to be well on your way to get this working!&lt;/P&gt;
&lt;P&gt;You should be using&amp;nbsp;getAllNetworkObject here. This also encompasses group objects.&lt;/P&gt;</description>
      <pubDate>Thu, 08 May 2025 07:29:22 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-security/deploy-via-ansible-on-fmc/m-p/5288952#M560</guid>
      <dc:creator>Torbjørn</dc:creator>
      <dc:date>2025-05-08T07:29:22Z</dc:date>
    </item>
    <item>
      <title>Re: Deploy Via Ansible on FMC</title>
      <link>https://community.cisco.com/t5/network-security/deploy-via-ansible-on-fmc/m-p/5289070#M561</link>
      <description>&lt;P&gt;Thanks, passed that level, but got to a different roadblock,&lt;/P&gt;
&lt;DIV id="tinyMceEditor_5c4c49d3020d88fmugambi_0" class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="fmugambi_1-1746711802016.png" style="width: 400px;"&gt;&lt;img src="https://community.cisco.com/t5/image/serverpage/image-id/244742i5247476ADED933E4/image-size/medium?v=v2&amp;amp;px=400" role="button" title="fmugambi_1-1746711802016.png" alt="fmugambi_1-1746711802016.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Below is my code,&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="fmugambi_2-1746711870183.png" style="width: 400px;"&gt;&lt;img src="https://community.cisco.com/t5/image/serverpage/image-id/244743i9096474C649111F5/image-size/medium?v=v2&amp;amp;px=400" role="button" title="fmugambi_2-1746711870183.png" alt="fmugambi_2-1746711870183.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;- name: Get the Source Network Pool Object (Pointing-To-ADC)&lt;BR /&gt;cisco.fmcansible.fmc_configuration:&lt;BR /&gt;operation: getAllNetworkObject&lt;BR /&gt;query_params:&lt;BR /&gt;filter: 'nameOrValue:EADC-PROD-K8S-LOCAL'&lt;BR /&gt;path_params:&lt;BR /&gt;domainUUID: '{{ domain[0].uuid }}'&lt;BR /&gt;register_as: source_network&lt;/P&gt;
&lt;P&gt;- name: Fail if source network not found&lt;BR /&gt;fail:&lt;BR /&gt;msg: "Source network object 'EADC-PROD-K8S-LOCAL' not found."&lt;BR /&gt;when: source_network | length == 0&lt;BR /&gt;&lt;BR /&gt;Wonder why yet from the device itself the object exists;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="fmugambi_3-1746711981981.png" style="width: 400px;"&gt;&lt;img src="https://community.cisco.com/t5/image/serverpage/image-id/244744iD6E4E13B56826CBB/image-size/medium?v=v2&amp;amp;px=400" role="button" title="fmugambi_3-1746711981981.png" alt="fmugambi_3-1746711981981.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 08 May 2025 13:46:32 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-security/deploy-via-ansible-on-fmc/m-p/5289070#M561</guid>
      <dc:creator>fmugambi</dc:creator>
      <dc:date>2025-05-08T13:46:32Z</dc:date>
    </item>
    <item>
      <title>Re: Deploy Via Ansible on FMC</title>
      <link>https://community.cisco.com/t5/network-security/deploy-via-ansible-on-fmc/m-p/5289073#M562</link>
      <description>&lt;P&gt;I'm sorry&amp;nbsp;&lt;a href="https://community.cisco.com/t5/user/viewprofilepage/user-id/1556185"&gt;@fmugambi&lt;/a&gt;, I misremembered the usage of getAllNetworkObject in regards to group objects. You should use getAllNetworkGroup there instead. The parameters should be the same so you'll only have to change the operation.&lt;/P&gt;</description>
      <pubDate>Thu, 08 May 2025 13:55:11 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-security/deploy-via-ansible-on-fmc/m-p/5289073#M562</guid>
      <dc:creator>Torbjørn</dc:creator>
      <dc:date>2025-05-08T13:55:11Z</dc:date>
    </item>
    <item>
      <title>Re: Deploy Via Ansible on FMC</title>
      <link>https://community.cisco.com/t5/network-security/deploy-via-ansible-on-fmc/m-p/5289077#M563</link>
      <description>&lt;P&gt;Got it ,&lt;BR /&gt;wha&amp;nbsp; if the object is just host, what operation do I use?&lt;/P&gt;</description>
      <pubDate>Thu, 08 May 2025 13:57:35 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-security/deploy-via-ansible-on-fmc/m-p/5289077#M563</guid>
      <dc:creator>fmugambi</dc:creator>
      <dc:date>2025-05-08T13:57:35Z</dc:date>
    </item>
    <item>
      <title>Re: Deploy Via Ansible on FMC</title>
      <link>https://community.cisco.com/t5/network-security/deploy-via-ansible-on-fmc/m-p/5289080#M564</link>
      <description>&lt;P&gt;i think i Got it;&lt;BR /&gt;getAllHostObject&lt;/P&gt;</description>
      <pubDate>Thu, 08 May 2025 14:00:13 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-security/deploy-via-ansible-on-fmc/m-p/5289080#M564</guid>
      <dc:creator>fmugambi</dc:creator>
      <dc:date>2025-05-08T14:00:13Z</dc:date>
    </item>
    <item>
      <title>Re: Deploy Via Ansible on FMC</title>
      <link>https://community.cisco.com/t5/network-security/deploy-via-ansible-on-fmc/m-p/5289083#M565</link>
      <description>&lt;P&gt;That would be getAllHostObject, same parameters used there. &lt;BR /&gt;The list of all available operations can be found under the docs in the &lt;A href="https://github.com/CiscoDevNet/FMCAnsible/tree/main/samples/docs/operations" target="_blank" rel="noopener"&gt;Github repository&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;EDIT: Wrote this before I saw the reply above. You're correct!&lt;/P&gt;</description>
      <pubDate>Thu, 08 May 2025 14:01:49 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-security/deploy-via-ansible-on-fmc/m-p/5289083#M565</guid>
      <dc:creator>Torbjørn</dc:creator>
      <dc:date>2025-05-08T14:01:49Z</dc:date>
    </item>
    <item>
      <title>Re: Deploy Via Ansible on FMC</title>
      <link>https://community.cisco.com/t5/network-security/deploy-via-ansible-on-fmc/m-p/5289085#M566</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="fmugambi_0-1746712865822.png" style="width: 400px;"&gt;&lt;img src="https://community.cisco.com/t5/image/serverpage/image-id/244745iA04CBE959FAE9A47/image-size/medium?v=v2&amp;amp;px=400" role="button" title="fmugambi_0-1746712865822.png" alt="fmugambi_0-1746712865822.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;so far so good, nat seems to have worked,&lt;BR /&gt;allow me to include the deployment code on the playbook, to have it run end-to-end i.e work on the nat and deploy the changes,&lt;BR /&gt;will update here.&lt;BR /&gt;thankyou so much for your help to this point.&lt;/P&gt;</description>
      <pubDate>Thu, 08 May 2025 14:02:22 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-security/deploy-via-ansible-on-fmc/m-p/5289085#M566</guid>
      <dc:creator>fmugambi</dc:creator>
      <dc:date>2025-05-08T14:02:22Z</dc:date>
    </item>
    <item>
      <title>Re: Deploy Via Ansible on FMC</title>
      <link>https://community.cisco.com/t5/network-security/deploy-via-ansible-on-fmc/m-p/5289111#M567</link>
      <description>&lt;P&gt;hello&amp;nbsp;&lt;a href="https://community.cisco.com/t5/user/viewprofilepage/user-id/964504"&gt;@Torbjørn&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;was able to successfully deploy the nat but sorry, run into another issue.&lt;BR /&gt;instead of replacing the nat 1 to nat 2, i have ended up creating nat 1 and nat 2?&lt;BR /&gt;what can i do just to replace not add?&lt;BR /&gt;thanks.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 08 May 2025 15:18:31 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-security/deploy-via-ansible-on-fmc/m-p/5289111#M567</guid>
      <dc:creator>fmugambi</dc:creator>
      <dc:date>2025-05-08T15:18:31Z</dc:date>
    </item>
    <item>
      <title>Re: Deploy Via Ansible on FMC</title>
      <link>https://community.cisco.com/t5/network-security/deploy-via-ansible-on-fmc/m-p/5289205#M568</link>
      <description>&lt;P&gt;I would just add a step that removes the old one, either before or after the creation of the new one.&lt;/P&gt;</description>
      <pubDate>Thu, 08 May 2025 17:35:07 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-security/deploy-via-ansible-on-fmc/m-p/5289205#M568</guid>
      <dc:creator>Torbjørn</dc:creator>
      <dc:date>2025-05-08T17:35:07Z</dc:date>
    </item>
    <item>
      <title>Re: Deploy Via Ansible on FMC</title>
      <link>https://community.cisco.com/t5/network-security/deploy-via-ansible-on-fmc/m-p/5289898#M569</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;been trying this over the weekend, got very stuck &amp;gt; the deletion bit.&lt;BR /&gt;i have multiple static manual Nats, I would not wish to affect the rest , just specific one.&lt;BR /&gt;Been using the source and destination IP address to use to filter the nat rule to delete to no joy.&lt;BR /&gt;when i debug i notice the nats output in form of either, 'id' 'links' ' type' but id &amp;amp; links seem as the unique identifiers.&lt;BR /&gt;question if say the current nat rule i wish to delete is 2, and its successfully deleted, then the new added one id is 8, next time if i want to delete this new nat, i must change my playbook?&lt;BR /&gt;or am i missing something?&lt;/P&gt;</description>
      <pubDate>Mon, 12 May 2025 10:49:50 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-security/deploy-via-ansible-on-fmc/m-p/5289898#M569</guid>
      <dc:creator>fmugambi</dc:creator>
      <dc:date>2025-05-12T10:49:50Z</dc:date>
    </item>
    <item>
      <title>Re: Deploy Via Ansible on FMC</title>
      <link>https://community.cisco.com/t5/network-security/deploy-via-ansible-on-fmc/m-p/5289905#M570</link>
      <description>&lt;P&gt;You should find the correct rule by filtering for specified attributes(as you have been trying) to avoid hardcoding IDs. Can you post the relevant parts of your playbook along with the error message you are receiving?&lt;/P&gt;</description>
      <pubDate>Mon, 12 May 2025 11:01:47 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-security/deploy-via-ansible-on-fmc/m-p/5289905#M570</guid>
      <dc:creator>Torbjørn</dc:creator>
      <dc:date>2025-05-12T11:01:47Z</dc:date>
    </item>
    <item>
      <title>Re: Deploy Via Ansible on FMC</title>
      <link>https://community.cisco.com/t5/network-security/deploy-via-ansible-on-fmc/m-p/5289910#M571</link>
      <description>&lt;P&gt;- name: Get the already existing nat pool to delete&lt;BR /&gt;cisco.fmcansible.fmc_configuration:&lt;BR /&gt;operation: getAllNetworkGroup&lt;BR /&gt;query_params:&lt;BR /&gt;filter: 'nameOrValue:DR-PROD-K8S-LOCAL'&lt;BR /&gt;path_params:&lt;BR /&gt;domainUUID: '{{ domain[0].uuid }}'&lt;BR /&gt;register_as: delete_source_network&lt;/P&gt;
&lt;P&gt;- name: Fail if source network object to be deleted 'DR-PROD-K8S-LOCAL' not found&lt;BR /&gt;fail:&lt;BR /&gt;msg: "Source network object 'DR-PROD-K8S-LOCAL' not found."&lt;BR /&gt;when: delete_source_network | length == 0&lt;/P&gt;
&lt;P&gt;- name: Get the translated network object from the intended to delete nat pool&lt;BR /&gt;cisco.fmcansible.fmc_configuration:&lt;BR /&gt;operation: getAllHostObject&lt;BR /&gt;query_params:&lt;BR /&gt;filter: 'nameOrValue:DR-PROD-K8S-NAT'&lt;BR /&gt;path_params:&lt;BR /&gt;domainUUID: '{{ domain[0].uuid }}'&lt;BR /&gt;register_as: delete_translated_network&lt;/P&gt;
&lt;P&gt;- name: Fail if translated network object on the to be deleted source pool 'DR-PROD-K8S-NAT' not found&lt;BR /&gt;fail:&lt;BR /&gt;msg: "Translated network object for the pool to be deleted 'DR-PROD-K8S-NAT' not found."&lt;BR /&gt;when: delete_translated_network | length == 0&lt;/P&gt;
&lt;P&gt;- name: Get FTD Manual NAT Rules for 'DR-NATs' to delete&lt;BR /&gt;cisco.fmcansible.fmc_configuration:&lt;BR /&gt;operation: "getAllFTDManualNatRule"&lt;BR /&gt;path_params:&lt;BR /&gt;containerUUID: "{{ natpolicy.id }}"&lt;BR /&gt;domainUUID: "{{ domain[0].uuid }}"&lt;BR /&gt;register_as: natrule_to_delete&lt;/P&gt;
&lt;P&gt;- name: Debug Nat Rule to Delete&lt;BR /&gt;debug:&lt;BR /&gt;var: natrule_to_delete&lt;/P&gt;
&lt;P&gt;- name: Find NAT rule with matching source and translated addresses to delete&lt;BR /&gt;set_fact:&lt;BR /&gt;rule_to_delete: "{{ natrule_to_delete.results | selectattr('originalSource.id', 'equalto', delete_source_network[0].id) | selectattr('translatedSource.id', 'equalto', delete_translated_network[0].id) | list | first }}"&lt;/P&gt;
&lt;P&gt;- name: Fail if no matching NAT rule is found to delete&lt;BR /&gt;fail:&lt;BR /&gt;msg: "NAT rule with source 'DR-PROD-K8S-LOCAL' and translated source 'DR-PROD-K8S-NAT' not found."&lt;BR /&gt;when: rule_to_delete is not defined&lt;/P&gt;
&lt;P&gt;- name: Delete the NAT rule&lt;BR /&gt;cisco.fmcansible.fmc_configuration:&lt;BR /&gt;operation: deleteFTDManualNatRule&lt;BR /&gt;path_params:&lt;BR /&gt;containerUUID: "{{ natpolicy.id }}"&lt;BR /&gt;domainUUID: "{{ domain[0].uuid }}"&lt;BR /&gt;objectId: "{{ rule_to_delete.id }}"&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 12 May 2025 11:10:31 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-security/deploy-via-ansible-on-fmc/m-p/5289910#M571</guid>
      <dc:creator>fmugambi</dc:creator>
      <dc:date>2025-05-12T11:10:31Z</dc:date>
    </item>
    <item>
      <title>Re: Deploy Via Ansible on FMC</title>
      <link>https://community.cisco.com/t5/network-security/deploy-via-ansible-on-fmc/m-p/5289925#M572</link>
      <description>&lt;P&gt;ASK [Find NAT rule with matching source and translated addresses to delete] *****************************************************************************************&lt;BR /&gt;fatal: [DR-FMCv]: FAILED! =&amp;gt; {"msg": "The task includes an option with an undefined variable. The error was: 'list object' has no attribute 'results'. 'list object' has no attribute 'results'\n\nThe error appears to be in '/etc/ansible/NAT_FAILOVER/dr-ftd-starting_traffic.yaml': line 130, column 7, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n\n - name: Find NAT rule with matching source and translated addresses to delete\n ^ here\n"}&lt;/P&gt;
&lt;P&gt;PLAY RECAP ***********************************************************************************************************************************************************&lt;BR /&gt;DR-FMCv : ok=12 changed=0 unreachable=0 failed=1 skipped=5 rescued=0 ignored=0&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 12 May 2025 12:09:41 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-security/deploy-via-ansible-on-fmc/m-p/5289925#M572</guid>
      <dc:creator>fmugambi</dc:creator>
      <dc:date>2025-05-12T12:09:41Z</dc:date>
    </item>
  </channel>
</rss>

