Play-book Missing required libraries

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.

Play-book Missing required libraries

L1 Bithead

My play fails when i include an inventory with an output message:

"msg": "Missing required libraries."

This works okay  when I passe the hosts details as a variable from var.yml to my playbook. Not sure what Is wrong but I am testing with the example playbooks in the Git repository.

2 REPLIES 2

L3 Networker

It's likely there's a package dependency that needs to be addressed.  Can you confirm you've installed the following python packages?  If not you can add them with pip install packagename.

 

  • pan-python
  • pandevice
  • xmltodict
  • json
  • ipaddress

I think I got all that, Note that this  only happens when I ...

ansible-playbook templates.yml -i <inventory.file> , where the invenrory has {{my-firewall}}
(using)

hosts: my-firewall
connection: local

The play works when I run playbook without -i <invenroty.file  ( hosts: localhost ) and passing my-firewall ip directly to the playbook.yml template.

  • 3841 Views
  • 2 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!