feat(edge_vps): add role structure and handlers
This commit is contained in:
12
roles/edge_vps/handlers/main.yaml
Normal file
12
roles/edge_vps/handlers/main.yaml
Normal file
@@ -0,0 +1,12 @@
|
||||
---
|
||||
- name: Restart wireguard
|
||||
ansible.builtin.systemd:
|
||||
name: "wg-quick@{{ edge_vps_wireguard_interface }}"
|
||||
state: restarted
|
||||
listen: restart wireguard
|
||||
|
||||
- name: Restart traefik
|
||||
ansible.builtin.command:
|
||||
cmd: docker compose restart
|
||||
chdir: "{{ edge_vps_traefik_config_dir }}"
|
||||
listen: restart traefik
|
||||
Reference in New Issue
Block a user