2020-04-22 11:59:41 +02:00
|
|
|
---
|
2022-06-23 16:17:42 +02:00
|
|
|
- name: "Deploy ospf check scripts"
|
2020-04-22 11:59:41 +02:00
|
|
|
template:
|
|
|
|
src: "{{ item }}.j2"
|
|
|
|
dest: /usr/share/scripts/{{ item }}
|
|
|
|
with_items:
|
|
|
|
- "ospfd-check-peers.sh"
|
|
|
|
- "ospf6d-check-peers.sh"
|
|
|
|
when: group_names | select('search','ospf') | list | count > 0
|
|
|
|
tags:
|
2020-06-01 11:37:15 +02:00
|
|
|
- ospf
|
2020-04-22 11:59:41 +02:00
|
|
|
|
2022-06-23 16:17:42 +02:00
|
|
|
- name: "Cron job for ospf check scripts is installed"
|
2020-04-22 11:59:41 +02:00
|
|
|
cron:
|
|
|
|
name: "{{ item }} check"
|
|
|
|
job: "/bin/sh /usr/share/scripts/{{ item }}-check-peers.sh"
|
|
|
|
with_items:
|
|
|
|
- ospfd
|
|
|
|
- ospf6d
|
|
|
|
when: group_names | select('search','ospf') | list | count > 0
|
|
|
|
tags:
|
|
|
|
- ospf
|