ansible-pan | Ansible modules for Palo Alto Networks NGFWs | Job Orchestrator library
kandi X-RAY | ansible-pan Summary
kandi X-RAY | ansible-pan Summary
Ansible modules for Palo Alto Networks NGFWs
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Process a module
- Check if a string is too old
- Write data to output directory
- Process a category
- Print the module
- Convert rst to rst
- Set the password for an ip_address
- Wait for a prompt
- Set an admin role
- Checks if an admin exists
- Get a list of services
- Generate a certificate
- Return a connection
- Create a Jinja2 environment
- Convert an element to a dictionary
- Import a file
- Return True if the object matches the given field
- Get parent from pandevice
- Return True if port is in SVCC
- Lists all modules in the given directory
- Commit changes
- Creates a new AddressObject
- Apply position
- Apply a state to an object
- Return a dictionary of configuration options
- Create nat rule
ansible-pan Key Features
ansible-pan Examples and Code Snippets
Community Discussions
Trending Discussions on ansible-pan
QUESTION
I am new to Ansible and am currently working to put together a playbook to deploy some Palo Alto configuration using the following modules:
https://github.com/PaloAltoNetworks/ansible-pan
I have been at this thing for a week now trying to work it out and I can't quite figure out why this 'list' isn't working. In summary, this code connects to the firewall, creates a new address object and if a 'service' variable exists that says http or https then it will add this object to an existing firewall address group.
The problem is with the addition to the firewall group. The task that accomplishes this seems to overwrite the existing objects within the group instead of appending to it.
To try and combat this I have a task that 'finds' the existing objects (results are within a dictionary which I then to a list variable. This variable + the new server variable are then used in the 'static_value' job to update the address group. This doesn't seem to work and looks like it is exceeding a character limit as if it is one string.
I have also attempted to re-add the existing objects on their own and this also fails with the following:
...ANSWER
Answered 2019-Jul-15 at 19:00Disclaimer This is a totally blind debugging as I can't reproduce anything from your original post. Always consider making minimal reproducible examples if this is possible.
The inline documentation of your module for the static_value
parameter clearly states it's waiting for a list of 'address objects':
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install ansible-pan
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page