- Access exclusive content
- Connect with peers
- Share your expertise
- Find support resources
02-28-2020 05:31 AM
new to ansible - that being said I wanted to ask has anyone used example playbooks in ansible-galaxy to do config changes to 20 or 100 + plus devices? In the past, I have used a custom python script that works well it allows me to manually add the command and the device list and let it run but it's not as pretty as using ansible.
I'm looking at using the fw_op_loop.yml or just fw_op.yml to apply commands set deviceconfig setting ssl-decrypt url-proxy yes &
.
03-03-2020 02:55 PM
could something like this work?
- name: Demonstrate how to use OP module to execute various op commands on PANW device
hosts: my-firewall
connection: local
gather_facts: False
roles:
- role: PaloAltoNetworks.paloaltonetworks
tasks:
- include_vars: 'firewall-secrets.yml.bak'
no_log: 'yes'
- name: Enable http proxy.
panos_type_cmd:
provider: '{{provider}}'
xpath: |
/config/devices/entry[@name='localhost.localdomain']
/deviceconfig/setting/ssl-decrypt
element: |
<url-proxy>yes</url-proxy>
</entry>
03-03-2020 02:55 PM
could something like this work?
- name: Demonstrate how to use OP module to execute various op commands on PANW device
hosts: my-firewall
connection: local
gather_facts: False
roles:
- role: PaloAltoNetworks.paloaltonetworks
tasks:
- include_vars: 'firewall-secrets.yml.bak'
no_log: 'yes'
- name: Enable http proxy.
panos_type_cmd:
provider: '{{provider}}'
xpath: |
/config/devices/entry[@name='localhost.localdomain']
/deviceconfig/setting/ssl-decrypt
element: |
<url-proxy>yes</url-proxy>
</entry>
10-06-2020 01:44 PM
HI,
Hope you can help me on this.
I am looking to create a task for one of the CLI cmd "set deviceconfig setting management large core yes". I have the Xpath & XML format for this cmd. what is the module & format that helps me to execute this with no issues.
Thanks
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!