aboutsummaryrefslogblamecommitdiffstats
path: root/roles/wireguard/tasks/cron.yml
blob: 3d723e59f0f59b3e9d9097e5ce9f4cd36d01f345 (plain) (tree)
1
2
3
4
5
6
7

   


                                                        

                                                                                                                                                                                      
---

- name: add cronjob for keepalive
  ansible.builtin.cron:
    name: keepalive network traffic to domain controller
    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.