ansible/roles/router/tasks/restart-wan-on-failure.yml
2020-06-23 02:16:47 +02:00

23 lines
538 B
YAML

---
- name: copy monitor script
copy:
src: monitor.sh
dest: /config/scripts/monitor.sh
mode: '0755'
- name: copy script for reseting modem
copy:
src: tplink_smartplug.py
dest: /config/scripts/tplink_smartplug.py
mode: '0755'
- name: setup cron task
vars:
ansible_connection: network_cli
ansible_network_os: edgeos
edgeos_config:
lines:
- set system task-scheduler task restartWan executable path /config/scripts/monitor.sh
- set system task-scheduler task restartWan interval 5m