[Ansible] Commit

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements

[Ansible] Commit

L0 Member

Hello,

 

I've noticed that Ansible will commit changes by default, False option doesn't seem to influence it.

 

For example, if Ansible adds security rule for 10.10.10.1 - it will not be committed.

Next run, adding rule for 10.10.10.2, will commit the rule added for 10.10.10.1, and leave rules for 10.10.10.2.

 

Additionally, I have not been able to make panos_commit module work with "admins" key - all changes are always committed.

 

Did anyone perhaps have a similar experience?

 

Thank you.

Best regards.

1 accepted solution

Accepted Solutions

L5 Sessionator

If I use "panos_security_rule" to add a rule and I set "commit" to False it does not commit.  Also the "admins" param requires that your PAN-OS supports that feature (I think it went in around 8.0 timeframe), so you need to be running that or later for that to work.

 

I guess just make sure you're running a new enough version of PAN-OS and that you're using the Palo Alto Networks Ansible collection (or the role if you're not running Ansible 2.9 or later).

View solution in original post

1 REPLY 1

L5 Sessionator

If I use "panos_security_rule" to add a rule and I set "commit" to False it does not commit.  Also the "admins" param requires that your PAN-OS supports that feature (I think it went in around 8.0 timeframe), so you need to be running that or later for that to work.

 

I guess just make sure you're running a new enough version of PAN-OS and that you're using the Palo Alto Networks Ansible collection (or the role if you're not running Ansible 2.9 or later).

  • 1 accepted solution
  • 3081 Views
  • 1 replies
  • 0 Likes
Like what you see?

Show your appreciation!

Click Like if a post is helpful to you or if you just want to show your support.

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!