-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathyaml_render.yml
62 lines (54 loc) · 1.71 KB
/
yaml_render.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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
---
- hosts: all
serial: 100
gather_facts: no
connection: local
vars_prompt:
- name: juniper_user
prompt: User
private: no
- name: juniper_password
prompt: Password
private: yes
pre_tasks:
- name: "PRETASK - [Step 01] - Generate Credential"
set_fact:
credential:
user: "{{ juniper_user }}"
passwd: "{{ juniper_password }}"
host: "{{ '{{' }} ansible_host {{ '}}' }}"
run_once: true
delegate_to: localhost
- name: "PRETASK - [Step 02] - Set Variable Ansible Log Prefix"
set_fact: log_prefix="render"
run_once: true
delegate_to: localhost
- name: "VARIABLES - [Step 01] - Set variable for RPM: probe-type"
set_fact: probe_type="icmp-ping"
run_once: true
delegate_to: localhost
- name: "VARIABLES - [Step 02] - Set variable for RPM: probe-count"
set_fact: probe_count="15"
run_once: true
delegate_to: localhost
- name: "VARIABLES - [Step 03] - Set variable for RPM: probe-interval"
set_fact: probe_interval="1"
run_once: true
delegate_to: localhost
- name: "VARIABLES - [Step 04] - Set variable for RPM: test-interval"
set_fact: test_interval="20"
run_once: true
delegate_to: localhost
- name: "VARIABLES - [Step 05] - Set variable for RPM: total-loss"
set_fact: total_loss="3"
run_once: true
delegate_to: localhost
- name: "VARIABLES - [Step 06] - Set variable for RPM: hardware-timestamp"
set_fact: hardware_timestamp="hardware-timestamp"
run_once: true
delegate_to: localhost
roles:
- role: Juniper.junos
- role: ansible_log_rotato
- role: check_netconf
- role: render