- Access exclusive content
- Connect with peers
- Share your expertise
- Find support resources
09-04-2024 07:21 AM
Hi;
While Executing Arbitrary commands like (eg: show lacp aggregate-ethernet all, show chassis status ) via ansible playbook its not getting exact output as we getting in paloalto console output some attributes are missing, I am using the paloaltonetworks.panos.panos_op modules for generating the ansible report. Is the any other specific module to generate the exact output via ansible.
Thanks,
Mohamed Azharudeen
09-04-2024 01:49 PM
Ansible works great if you're trying to do very defined tasks; the moment that you start introducing arbitrary commands I personally highly recommend dropping to the actual API. You're kind of stuck because you're reliant on how the module is parsing the returned result. Personally I find it better to just build it yourself.
If that isn't your thing, you'll want to open an issue on Github and hope someone actually picks it up and fixes the parsing to include whatever you've identified is missing.
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!