From 8dc462d7a84fdb2aa778b63d5e102c8fa8683d9d Mon Sep 17 00:00:00 2001 From: ace Date: Sat, 3 Aug 2024 05:09:43 +0300 Subject: [PATCH] fix caps for handlers --- handlers/main.yaml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/handlers/main.yaml b/handlers/main.yaml index b5cdbaa..a69c8b6 100644 --- a/handlers/main.yaml +++ b/handlers/main.yaml @@ -7,6 +7,8 @@ container_default_behavior: no_defaults detach: true restart_policy: unless-stopped + cap_add: + - NET_ADMIN env: "{{ wireguard_ui_combined_env }}" volumes: "{{ wireguard_ui_volumes }}" when: @@ -22,6 +24,8 @@ image: "{{ wireguard_ui_container_registry }}/{{ wireguard_ui_image_name }}:{{ wireguard_ui_image_tag }}" state: started restart: yes + cap_add: + - NET_ADMIN env: "{{ wireguard_ui_combined_env }}" volumes: "{{ wireguard_ui_volumes }}" when: