- Access exclusive content
- Connect with peers
- Share your expertise
- Find support resources
07-26-2018 09:45 AM
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?
08-02-2018 07:13 AM - edited 08-02-2018 07:13 AM
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!
07-30-2018 12:13 PM - edited 07-30-2018 12:13 PM
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!
07-30-2018 12:53 PM
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?
08-02-2018 07:13 AM - edited 08-02-2018 07:13 AM
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!
08-28-2018 04:25 PM
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"}
08-29-2018 03:53 AM
You are using panos_object, try panos_op insted
08-29-2018 10:45 AM
thanks, it works. do you know how to print the output?
08-29-2018 10:53 AM
`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.
08-30-2018 10:44 AM
Thank you, it works after removing the commit per your sugestion!
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!