PaloAltoNetworks / ansible-pan

Ansible modules for Palo Alto Networks NGFWs

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

panos_api_key documentation is faulty.

arisat-equinor opened this issue · comments

Documentation link

https://github.com/PaloAltoNetworks/ansible-pan/blob/master/examples/fw_api_key.yml

Describe the problem

Documentation example is faulty and cannot work. Has never been tested or run.

  • name: Display API Key
    debug:
    var: '{{ auth.api_key }}'
    verbosity: 0

Will never work, as "var:" assumes implied jinja2 brackets. '{{ auth.api_key }}' produces immediate error.

Suggested fix

Change to:

  var: auth.api_key

🎉 Thanks for opening your first issue here! Welcome to the community!