aboutsummaryrefslogtreecommitdiffstats
path: root/roles/wireguard/tasks/cron.yml
diff options
context:
space:
mode:
authorRomain Gonçalves <me@rgoncalves.se>2021-12-12 14:52:04 +0000
committerRomain Gonçalves <me@rgoncalves.se>2021-12-12 14:54:58 +0000
commitc72bba3be432c661788d93a8cb40defba213a226 (patch)
tree7369313f401ab344610749cd7f2f9851131352ad /roles/wireguard/tasks/cron.yml
parent4a16c10dd3b870ce62fdae9b590ff207e30a2bdd (diff)
downloadrules-c72bba3be432c661788d93a8cb40defba213a226.tar.gz
roles/wireguard: Daemon hang with shell module
Using the raw module is a workaround for having wg-quick working in background.
Diffstat (limited to 'roles/wireguard/tasks/cron.yml')
-rw-r--r--roles/wireguard/tasks/cron.yml5
1 files changed, 5 insertions, 0 deletions
diff --git a/roles/wireguard/tasks/cron.yml b/roles/wireguard/tasks/cron.yml
new file mode 100644
index 0000000..482b34f
--- /dev/null
+++ b/roles/wireguard/tasks/cron.yml
@@ -0,0 +1,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 }}
remember that computers suck.