-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjuniper_example.yml
More file actions
32 lines (29 loc) · 877 Bytes
/
Copy pathjuniper_example.yml
File metadata and controls
32 lines (29 loc) · 877 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# Alex Diker
# _____ .__ ________ .__ __
# / _ \ | | ____ ___ ___ \______ \ |__| | __ ___________
# / /_\ \| | _/ __ \\ \/ / | | \| | |/ // __ \_ __ \
#/ | \ |_\ ___/ > < | ` \ | <\ ___/| | \/
#\____|__ /____/\___ >__/\_ \ /_______ /__|__|_ \\___ >__|
# \/ \/ \/ \/ \/ \/
#
# Ansible AWX
---
- name: Get Juniper Device Facts
hosts: "junos_devices"
gather_facts: false
connection: local
vars:
netconf:
host: "{{ ansible_host }}"
username: "{{ username}}"
password: "{{ password }}"
port: 830
transport: netconf
tasks:
- name: collect default set of facts
junos_facts:
provider: "{{ netconf }}"
register: output
- name: show output
debug:
var: output