<?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: Trying to turn of Preemption via Ansible Playbook failure in Automation/API Discussions</title>
    <link>https://live.paloaltonetworks.com/t5/automation-api-discussions/trying-to-turn-of-preemption-via-ansible-playbook-failure/m-p/503871#M3049</link>
    <description>&lt;P&gt;Hey&amp;nbsp;&lt;a href="https://live.paloaltonetworks.com/t5/user/viewprofilepage/user-id/136552"&gt;@ryan.slater&lt;/a&gt;&amp;nbsp;; could you explain more what you possibly fixed? Was it a line break issue or something?&lt;/P&gt;</description>
    <pubDate>Wed, 15 Jun 2022 16:37:28 GMT</pubDate>
    <dc:creator>brandonmajor</dc:creator>
    <dc:date>2022-06-15T16:37:28Z</dc:date>
    <item>
      <title>Trying to turn of Preemption via Ansible Playbook failure</title>
      <link>https://live.paloaltonetworks.com/t5/automation-api-discussions/trying-to-turn-of-preemption-via-ansible-playbook-failure/m-p/440049#M2804</link>
      <description>&lt;P&gt;I am working on an ansible playbook for upgrading our Palo Alto Firewall, and one of the requirements that we have is that I have to disable Preemption.&amp;nbsp; I have not been able to find any examples of this so I have been working on creating my own task to add to the excellent examples that have been provided (&lt;A href="https://github.com/PaloAltoNetworks/ansible-playbooks" target="_blank"&gt;https://github.com/PaloAltoNetworks/ansible-playbooks&lt;/A&gt;).&amp;nbsp; Here is my task so far:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;tasks&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;name&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;&lt;SPAN&gt;Disable preemption on primary device&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;paloaltonetworks.panos.panos_type_cmd&lt;/SPAN&gt;&lt;SPAN&gt;:&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;provider&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;&lt;SPAN&gt;'{{ primary }}'&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;cmd&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;&lt;SPAN&gt;'set'&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;xpath&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;&lt;SPAN&gt;|&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; /config/devices/entry[@name='localhost.localdomain']&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; /deviceconfig/high-availability/group/election-option&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;element&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;&lt;SPAN&gt;|&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;election-option&amp;gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;preemptive&amp;gt;no&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/preemptive&amp;gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/election-option&amp;gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;When I run this task I get the following error:&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;FAILED! =&amp;gt; {"changed": false, "msg": "set failed, may need to override template object first"}&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;And when I change to cmd to override I get the following error:&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;FAILED! =&amp;gt; {"changed": false, "msg": "Object cannot be overridden\n"}&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;Additionally&lt;SPAN&gt;&amp;nbsp;the management plan becomes unresponsive for several minutes.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;I'm sure I am doing something wrong and it is something simple that I am missing on this, but I'm so deep into the weeds on it that I can't see it anymore.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Thank you for the help.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 11 Oct 2021 15:19:45 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/automation-api-discussions/trying-to-turn-of-preemption-via-ansible-playbook-failure/m-p/440049#M2804</guid>
      <dc:creator>ryan.slater</dc:creator>
      <dc:date>2021-10-11T15:19:45Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to turn of Preemption via Ansible Playbook failure</title>
      <link>https://live.paloaltonetworks.com/t5/automation-api-discussions/trying-to-turn-of-preemption-via-ansible-playbook-failure/m-p/440259#M2805</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://live.paloaltonetworks.com/t5/user/viewprofilepage/user-id/136552"&gt;@ryan.slater&lt;/a&gt;, I think it's a config format change you need. Try removing the &lt;FONT face="courier new,courier"&gt;election-option&lt;/FONT&gt; part of the xpath, leaving just&amp;nbsp;&lt;/P&gt;
&lt;DIV&gt;
&lt;DIV&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN&gt;/config/devices/entry[@name='localhost.localdomain']&lt;/SPAN&gt;&lt;SPAN style="font-family: inherit;"&gt;/deviceconfig/high-availability/group&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;
&lt;/DIV&gt;</description>
      <pubDate>Tue, 12 Oct 2021 12:21:13 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/automation-api-discussions/trying-to-turn-of-preemption-via-ansible-playbook-failure/m-p/440259#M2805</guid>
      <dc:creator>JimmyHolland</dc:creator>
      <dc:date>2021-10-12T12:21:13Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to turn of Preemption via Ansible Playbook failure</title>
      <link>https://live.paloaltonetworks.com/t5/automation-api-discussions/trying-to-turn-of-preemption-via-ansible-playbook-failure/m-p/440346#M2806</link>
      <description>&lt;P&gt;With this change doing a SET I get the following:&lt;/P&gt;&lt;P&gt;FAILED! =&amp;gt; {"changed": false, "msg": " group -&amp;gt; election-option -&amp;gt; preemptive is invalid"}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And with OVERRIDE I get the following:&lt;/P&gt;&lt;P&gt;FAILED! =&amp;gt; {"changed": false, "msg": "Object cannot be overridden\n"}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I add a "/" to the end of the XPATH (&lt;SPAN&gt;/config/devices/entry[@name='localhost.localdomain']&lt;/SPAN&gt;&lt;SPAN&gt;/deviceconfig/high-availability/group/) I still have the same errors as I previously had in my past post.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 12 Oct 2021 17:56:33 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/automation-api-discussions/trying-to-turn-of-preemption-via-ansible-playbook-failure/m-p/440346#M2806</guid>
      <dc:creator>ryan.slater</dc:creator>
      <dc:date>2021-10-12T17:56:33Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to turn of Preemption via Ansible Playbook failure</title>
      <link>https://live.paloaltonetworks.com/t5/automation-api-discussions/trying-to-turn-of-preemption-via-ansible-playbook-failure/m-p/440370#M2807</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://live.paloaltonetworks.com/t5/user/viewprofilepage/user-id/136552"&gt;@ryan.slater&lt;/a&gt;, here's the full playbook and output in case it helps...&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="Screenshot 2021-10-12 at 21.00.43.png" style="width: 999px;"&gt;&lt;img src="https://live.paloaltonetworks.com/t5/image/serverpage/image-id/36965i2B7773A91E09A0A2/image-size/large/is-moderation-mode/true?v=v2&amp;amp;px=999" role="button" title="Screenshot 2021-10-12 at 21.00.43.png" alt="Screenshot 2021-10-12 at 21.00.43.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 12 Oct 2021 20:02:26 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/automation-api-discussions/trying-to-turn-of-preemption-via-ansible-playbook-failure/m-p/440370#M2807</guid>
      <dc:creator>JimmyHolland</dc:creator>
      <dc:date>2021-10-12T20:02:26Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to turn of Preemption via Ansible Playbook failure</title>
      <link>https://live.paloaltonetworks.com/t5/automation-api-discussions/trying-to-turn-of-preemption-via-ansible-playbook-failure/m-p/440380#M2808</link>
      <description>&lt;P&gt;Not sure what I must have typo'ed in my first attempt, but after copying your entry, it is now working on my side as expected.&amp;nbsp; Thank you very much for your help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;RS&lt;/P&gt;</description>
      <pubDate>Tue, 12 Oct 2021 21:05:12 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/automation-api-discussions/trying-to-turn-of-preemption-via-ansible-playbook-failure/m-p/440380#M2808</guid>
      <dc:creator>ryan.slater</dc:creator>
      <dc:date>2021-10-12T21:05:12Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to turn of Preemption via Ansible Playbook failure</title>
      <link>https://live.paloaltonetworks.com/t5/automation-api-discussions/trying-to-turn-of-preemption-via-ansible-playbook-failure/m-p/503871#M3049</link>
      <description>&lt;P&gt;Hey&amp;nbsp;&lt;a href="https://live.paloaltonetworks.com/t5/user/viewprofilepage/user-id/136552"&gt;@ryan.slater&lt;/a&gt;&amp;nbsp;; could you explain more what you possibly fixed? Was it a line break issue or something?&lt;/P&gt;</description>
      <pubDate>Wed, 15 Jun 2022 16:37:28 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/automation-api-discussions/trying-to-turn-of-preemption-via-ansible-playbook-failure/m-p/503871#M3049</guid>
      <dc:creator>brandonmajor</dc:creator>
      <dc:date>2022-06-15T16:37:28Z</dc:date>
    </item>
  </channel>
</rss>

