Question regarding new ansible features

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
Please sign in to see details of an important advisory in our Customer Advisories area.

Question regarding new ansible features

L3 Networker

I can see that here https://github.com/PaloAltoNetworks/ansible-pan/issues people are adding requests, is this the preferd way, or should i contact my local SE insted? 

1 accepted solution

Accepted Solutions

That is correct.  The modules listed on the Ansible website are contributed by Palo Alto Networks for inclusion in the official Ansible release.  They are QA-ed and approved by Ansible (Red Hat) and baselined in their release.

 

However... work on the Ansible modules is ongoing and if you want to run the latest stable modules you'll want to use the paloaltonetworks role in Ansible Galaxy instead.  This will allow you to adopt new modules and features between Ansible release cycles.

 

To install the role, issue the following command on your Ansible server:

 

ansible-galaxy install paloaltonetworks.paloaltonetworks

 

Then reference the role in your playbooks.

 

Hope this helps!

View solution in original post

8 REPLIES 8

L3 Networker

The ansible-pan modules are open source software contributed and maintained by Palo Alto Networks.  However, there is no technical support or field support for open source projects.  Feature requests and bug reports should be submitted to the GitHub repository.

 

P.S.  If you're handy with Python coding you're welcome to fork the repository and contribute new features to the project.

 

P.S.S. Even if you're not handy with Python or GitHub there's no better way to learn than by contributing to an existing project!

 

Ah ok

Just of curiosity. The modules that end up here https://docs.ansible.com/ansible/latest/modules/list_of_network_modules.html#panos are they just added from the ansible-pan repository after they have been approved somehow? 

That is correct.  The modules listed on the Ansible website are contributed by Palo Alto Networks for inclusion in the official Ansible release.  They are QA-ed and approved by Ansible (Red Hat) and baselined in their release.

 

However... work on the Ansible modules is ongoing and if you want to run the latest stable modules you'll want to use the paloaltonetworks role in Ansible Galaxy instead.  This will allow you to adopt new modules and features between Ansible release cycles.

 

To install the role, issue the following command on your Ansible server:

 

ansible-galaxy install paloaltonetworks.paloaltonetworks

 

Then reference the role in your playbooks.

 

Hope this helps!

Hi,

Has anypnme run any operation commnad from ansible, or upgrade device from ansible playbook, I'm, getting this command, using this playbook?


- name: Show system info
  panos_object:
     ip_address: '{{ ansible_host }}'
     password: '{{ password }}'
     cmd: "show system info"
     commit: False

 

 

TASK [Show system info] *************************************************************************************************************************************************************

fatal: [panhost]: FAILED! => {"changed": false, "msg": "Unsupported parameters for (panos_object) module: cmd,commit Supported parameters include: address,address_type,addressgroup,addressobject,api_key,color,description,destination_port,devicegroup,dynamic_value,ip_address,operation,password,protocol,servicegroup,serviceobject,services,source_port,static_value,tag_name,username"}

 

You are using   panos_object, try panos_op insted

thanks, it works. do you know how to print the output?

`panos_op` does not have a `commit` param, that's why you're getting that error.  The output also hints at this, as it gives all of the params for that module that are supported, but `commit` is not there.

Thank you, it works after removing the commit per your sugestion!

 

  • 1 accepted solution
  • 7636 Views
  • 8 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!