EvoBSD/roles/ospf/tasks/main.yml

23 lines
554 B
YAML
Raw Normal View History

2020-04-22 11:59:41 +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:
- ospf
2020-04-22 11:59:41 +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