Open Nothing4You opened 3 years ago
Is there any plan to update this? This module seems to be very old and unmaintained. Currently it's unsusable in environments where you are working with API keys instead of username/passwords or use specific ports.
Workaround:
Use the paloaltonetworks.panos.panos_op
module.
Feed the config_file
variable with the desired filename, and use this task:
- name: Load Config File
paloaltonetworks.panos.panos_op:
provider: '{{ provider }}'
cmd: <load><config><from>{{ config_file }}</from></config></load>
cmd_is_xml: true
Describe the bug
panos_loadcfg
currently only acceptsip_address
,password
andusername
parameters directly instead of theprovider
parameter used in most other modules. As far as I can tell this is just a regular XML API call and should therefore support theprovider
configuration just fine, which would enable the user to provide an API key to the module instead of passing username and password.Expected behavior
provider
dict should be accepted like it is in most other modules, such aspanos_type_cmd
.Current behavior
Possible solution
Implement support for the
provider
dict as alternative tousername
andpassword
.Steps to reproduce
ansible-playbook playbook.yml
Context
I was trying to authenticate using just an API key instead of having to pass username + password to the module. This currently forces me from using just the API key for authentication.
Your Environment