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: