Skip to content

Commit

Permalink
feat: System info playbook
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesholland-uk committed Apr 27, 2023
1 parent a2cdf9a commit 9cd2b77
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions pan-os-ansible/show-system-info.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
---
- name: Test Playbook
hosts: '{{ target | default("host_labfw") }}'
gather_facts: false
connection: local

vars:
device:
ip_address: "{{ ip_address }}"
username: "{{ username | default(omit) }}"
password: "{{ password | default(omit) }}"
api_key: "{{ api_key | default(omit) }}"

tasks:
- name: Get the system info
paloaltonetworks.panos.panos_op:
provider: '{{ device }}'
cmd: 'show system info'
register: res

- name: Show the system info
ansible.builtin.debug:
msg: '{{ res.stdout }}'

0 comments on commit 9cd2b77

Please sign in to comment.