-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathplaybook.yaml
54 lines (43 loc) · 1.58 KB
/
playbook.yaml
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
---
- name: Configure vJunos device
hosts: juniper
connection: local
gather_facts: no
vars:
ansible_python_interpreter: /etc/ansible/venv/bin/python
tasks:
# Show IP address
#- name: Show IP Address on vJunos interface
# import_tasks: scenario/juniper/check_ip_address/main.yaml
# Set IP address
#- name: Set IP Address on vJunos interface
# import_tasks: scenario/juniper/set_ip_address/main.yaml
# Remove IP address
#- name: Remove IP Address on vJunos interface
# import_tasks: scenario/juniper/remove_ip_address/main.yaml
# Set Area
#- name: Set Area(0)
# import_tasks: scenario/juniper/set_ospf_area/main.yaml
# Remove Area
#- name: Remove Area(0)
# import_tasks: scenario/juniper/remove_ospf_area/main.yaml
# Set Area
#- name: Set Interface-Type
# import_tasks: scenario/juniper/set_ospf_interface_type/main.yaml
# Remove Area
#- name: Remove Interface-Type
# import_tasks: scenario/juniper/remove_ospf_interface_type/main.yaml
# Set Router-ID
#- name : Set Router-ID
# import_tasks: scenario/juniper/set_ospf_router_id/main.yaml
# Remove Router-ID
#- name : Remove Router-ID
# import_tasks: scenario/juniper/remove_ospf_router_id/main.yaml
# Set Metric
- name : Set Metric
import_tasks: scenario/juniper/set_ospf_metric/main.yaml
# Commit the configuration using junos_config module
- name: Commit the configuration
junipernetworks.junos.junos_config:
confirm_commit: true
comment: "Configuration committed by Ansible"