-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathjunos.yml
47 lines (43 loc) · 1.07 KB
/
junos.yml
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
---
- name: Housekeeping
hosts: all
connection: local
gather_facts: no
run_once: true
tags: always
tasks:
- name: remove host config temp directory
file: path=/root/ansible_tmp/config state=absent
- name: remove host output temp directory
file: path=/root/ansible_tmp/output state=absent
- name: create host config temp directory
file: path=/root/ansible_tmp/config state=directory
- name: create host output temp directory
file: path=/root/ansible_tmp/output state=directory
- name: Playbook for Junos Common
hosts: all
connection: local
gather_facts: no
roles:
- Juniper.junos
- common
tags: common
- name: Playbook for Junos Switches and Firewalls
hosts: all
connection: local
gather_facts: no
roles:
- Juniper.junos
- switches
tags: sw_and_fw
- name: Playbook for Junos Switches
hosts: all
connection: local
gather_facts: no
roles:
- Juniper.junos
- vlan
tags: vlan
- name: Include a play after another play
import_playbook: notifications.yml
tags: slack_notification