2018-10-31 20:21:39 +01:00
|
|
|
---
|
|
|
|
- name: create loopback interface
|
|
|
|
template:
|
|
|
|
src: loopback.j2
|
|
|
|
dest: "/etc/network/interfaces.d/loopback"
|
|
|
|
notify: reload network interfaces
|
2019-03-23 15:05:36 +01:00
|
|
|
|
|
|
|
- name: create check-anycast.sh
|
|
|
|
template:
|
|
|
|
src: check-anycast.sh.j2
|
|
|
|
dest: "/usr/local/bin/check-anycast.sh"
|
|
|
|
owner: root
|
|
|
|
group: root
|
|
|
|
mode: 0755
|
|
|
|
|
|
|
|
- name: create cronjob for check-anycast.sh"
|
|
|
|
cron:
|
|
|
|
name: "check anycast availability"
|
|
|
|
minute: "*/1"
|
|
|
|
job: "/usr/local/bin/check-anycast.sh > /dev/null 2>&1"
|