From b8ea056455da774a382a44339f3e5208c6388b90 Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Fri, 9 Oct 2020 23:39:55 +0100 Subject: [PATCH] Remove netdata Don't use it anyway --- ansible/main.yml | 1 - ansible/roles/netdata/files/docker-compose.yml | 17 ----------------- ansible/roles/netdata/handlers/main.yml | 4 ---- ansible/roles/netdata/tasks/main.yml | 17 ----------------- 4 files changed, 39 deletions(-) delete mode 100644 ansible/roles/netdata/files/docker-compose.yml delete mode 100644 ansible/roles/netdata/handlers/main.yml delete mode 100644 ansible/roles/netdata/tasks/main.yml diff --git a/ansible/main.yml b/ansible/main.yml index 89c297c..32c983f 100644 --- a/ansible/main.yml +++ b/ansible/main.yml @@ -36,7 +36,6 @@ - hosts: intersect roles: - - netdata - home_assistant - intersect_docker - plausible diff --git a/ansible/roles/netdata/files/docker-compose.yml b/ansible/roles/netdata/files/docker-compose.yml deleted file mode 100644 index 4fc4475..0000000 --- a/ansible/roles/netdata/files/docker-compose.yml +++ /dev/null @@ -1,17 +0,0 @@ -version: "2.3" - -services: - netdata: - image: netdata/netdata:latest - cap_add: - - SYS_PTRACE - security_opt: - - apparmor:unconfined - volumes: - - /etc/passwd:/host/etc/passwd:ro - - /etc/group:/host/etc/group:ro - - /proc:/host/proc:ro - - /sys:/host/sys:ro - restart: unless-stopped - ports: - - 19999:19999 diff --git a/ansible/roles/netdata/handlers/main.yml b/ansible/roles/netdata/handlers/main.yml deleted file mode 100644 index 44f9d44..0000000 --- a/ansible/roles/netdata/handlers/main.yml +++ /dev/null @@ -1,4 +0,0 @@ -- name: restart netdata - shell: - chdir: /opt/netdata - cmd: "{{ docker_update_command }}" diff --git a/ansible/roles/netdata/tasks/main.yml b/ansible/roles/netdata/tasks/main.yml deleted file mode 100644 index 6271212..0000000 --- a/ansible/roles/netdata/tasks/main.yml +++ /dev/null @@ -1,17 +0,0 @@ -- name: Create install directory - file: - path: /opt/netdata - state: directory - owner: "{{ docker_user.name }}" - mode: "{{ docker_compose_directory_mask }}" - become: true - -- name: Install compose file - template: - src: files/docker-compose.yml - dest: /opt/netdata/docker-compose.yml - mode: "{{ docker_compose_file_mask }}" - owner: "{{ docker_user.name }}" - validate: /usr/bin/docker-compose -f %s config - notify: restart netdata - become: true