You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
ansible/playbooks/wireguard.yml

36 lines
695 B
YAML

---
- name: Configure wireguard backbones
hosts: wireguard_backbones
tags:
- wireguard
- wireguard_backbones
roles:
- role: wireguard/backbone
- name: Configure wireguard clients
hosts: wireguard_clients
tags:
- wireguard
- wireguard_clients
roles:
- role: wireguard/client
- name: Reload all configurations
hosts:
- wireguard_backbones
- wireguard_clients
tags:
- wireguard
- wireguard_backbones
- wireguard_clients
roles:
- name: misc/handlers
tasks:
- name: Reload systemd wireguard network always
become: no
command: /bin/true
delegate_to: localhost
notify:
- restart systemd network