Enhanced Security Measures in Place:   To ensure a safer experience, we’ve implemented additional, temporary security measures for all users.

Arbitrary commands issue on ansible

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

Arbitrary commands issue on ansible

L0 Member

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

 

 

 

 

 

1 REPLY 1

Cyber Elite
Cyber Elite

@Mohamedsham,

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.

 

 

  • 279 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!