panos_api_key documentation is faulty.
arisat-equinor opened this issue · comments
Arild Sæther commented
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
welcome commented
🎉 Thanks for opening your first issue here! Welcome to the community!