From 24abd941477155e4a25ca913d918fa64e96048b5 Mon Sep 17 00:00:00 2001 From: Vladislav Ponomarev Date: Thu, 6 Jun 2024 16:57:43 +0900 Subject: [PATCH] Update Netdata configuration --- roles/netdata/tasks/main.yml | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/roles/netdata/tasks/main.yml b/roles/netdata/tasks/main.yml index 1e475eb..2ccd83a 100644 --- a/roles/netdata/tasks/main.yml +++ b/roles/netdata/tasks/main.yml @@ -10,15 +10,23 @@ hostname: "{{ netdata_subdomain }}.{{ server_hostname }}" image: netdata/netdata state: started + detach: true pull: true volumes: - - "/proc:/host/proc:ro" - - "/sys:/host/sys:ro" - - "/var/run/docker.sock:/var/run/docker.sock:ro" + - /etc/passwd:/host/etc/passwd:ro + - /etc/group:/host/etc/group:ro + - /etc/localtime:/etc/localtime:ro + - /proc:/host/proc:ro + - /sys:/host/sys:ro + - /etc/os-release:/host/etc/os-release:ro + - /var/log:/host/var/log:ro + - /var/run/docker.sock:/var/run/docker.sock:ro + - /run/dbus:/run/dbus:ro env: PGID: "{{ docker_group.gid }}" capabilities: - SYS_PTRACE + - SYS_ADMIN security_opts: - apparmor:unconfined restart_policy: unless-stopped