aboutsummaryrefslogtreecommitdiffstats
path: root/roles
diff options
context:
space:
mode:
Diffstat (limited to 'roles')
-rw-r--r--roles/wireguard/tasks/cron.yml4
1 files changed, 2 insertions, 2 deletions
diff --git a/roles/wireguard/tasks/cron.yml b/roles/wireguard/tasks/cron.yml
index 9194648..3d723e5 100644
--- a/roles/wireguard/tasks/cron.yml
+++ b/roles/wireguard/tasks/cron.yml
@@ -3,5 +3,5 @@
- name: add cronjob for keepalive
ansible.builtin.cron:
name: keepalive network traffic to domain controller
- user: nobody
- job: ping -c 1 {{ hostvars[wireguard__domain_controller].__ip.external }}
+ user: root
+ job: "! ping -c 1 -w 1 {{ hostvars[wireguard__domain_controller].__ip.external }} && wg-quick down {{ wireguard__interface_name }} && wg-quick up {{ wireguard__interface_name }}"
remember that computers suck.