- Access exclusive content
- Connect with peers
- Share your expertise
- Find support resources
10-11-2021 08:19 AM
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. 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 (https://github.com/PaloAltoNetworks/ansible-playbooks). Here is my task so far:
10-12-2021 01:02 PM
Hi @ryan.slater, here's the full playbook and output in case it helps...
10-12-2021 05:21 AM
Hi @ryan.slater, I think it's a config format change you need. Try removing the election-option part of the xpath, leaving just
10-12-2021 10:56 AM
With this change doing a SET I get the following:
FAILED! => {"changed": false, "msg": " group -> election-option -> preemptive is invalid"}
And with OVERRIDE I get the following:
FAILED! => {"changed": false, "msg": "Object cannot be overridden\n"}
If I add a "/" to the end of the XPATH (/config/devices/entry[@name='localhost.localdomain']/deviceconfig/high-availability/group/) I still have the same errors as I previously had in my past post.
10-12-2021 01:02 PM
Hi @ryan.slater, here's the full playbook and output in case it helps...
10-12-2021 02:05 PM
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. Thank you very much for your help.
RS
06-15-2022 09:37 AM
Hey @ryan.slater ; could you explain more what you possibly fixed? Was it a line break issue or something?
Click Accept as Solution to acknowledge that the answer to your question has been provided.
The button appears next to the replies on topics you’ve started. The member who gave the solution and all future visitors to this topic will appreciate it!
These simple actions take just seconds of your time, but go a long way in showing appreciation for community members and the LIVEcommunity as a whole!
The LIVEcommunity thanks you for your participation!