ansible/roles/monit/templates/wireguard

6 lines
252 B
Plaintext
Raw Permalink Normal View History

check host wireguard address {{ monit_wireguard_ip }}
start program = "/usr/bin/systemctl start wg-quick@wg0"
stop program = "/usr/bin/systemctl stop wg-quick@wg0"
if failed ping then alert
if failed ping for 5 cycles then restart