diff --git a/meta/main.yml b/meta/main.yml index 1c23f517b2358dacb43e9cbe7b0e1bf81e3f5308..79508b8379fcaef8481bea85e7dcafcfb90b91a1 100644 --- a/meta/main.yml +++ b/meta/main.yml @@ -2,8 +2,8 @@ dependencies: - src: git@gitlab.fachschaften.org:fsi-ansible/netdata-base.git scm: git - version: "v1.0" + version: "v2.0" name: netdata_base - src: git@gitlab.fachschaften.org:fsi-ansible/msmtp_relay.git scm: git - version: "v1.0" + version: "v1.3" diff --git a/tasks/main.yml b/tasks/main.yml index 71d97b7ec107a8f1e575b7d8f1de4407c9b822aa..f191a19cecfbf42c2b08e8d051e1c319f9b168ec 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -2,14 +2,14 @@ - name: Copy netdata stream config template: src: stream.conf.j2 - dest: /opt/netdata/etc/netdata/stream.conf + dest: /etc/netdata/stream.conf when: netdata_master notify: restart netdata - name: Copy health override config copy: src: "{{ item }}" - dest: /opt/netdata/etc/netdata/health.d/ + dest: /etc/netdata/health.d/ with_fileglob: - "{{ inventory_hostname }}/netdata_health_override.conf" - "netdata_health_global.conf" @@ -22,7 +22,7 @@ - name: set email sender lineinfile: - path: /opt/netdata/etc/netdata/health_alarm_notify.conf + path: /etc/netdata/health_alarm_notify.conf regexp: "^EMAIL_SENDER=\".*\"" line: "EMAIL_SENDER=\"{{ netdata_from_email }}\"" state: present @@ -31,7 +31,7 @@ - name: set email recipient lineinfile: - path: /opt/netdata/etc/netdata/health_alarm_notify.conf + path: /etc/netdata/health_alarm_notify.conf regexp: "^DEFAULT_RECIPIENT_EMAIL=\".*\"" line: "DEFAULT_RECIPIENT_EMAIL=\"{{ netdata_to_email }}\"" state: present