From 305708add3bb3d0c27d9350b0b946ee95cb280ae Mon Sep 17 00:00:00 2001 From: James Tombleson Date: Mon, 22 Apr 2019 15:32:56 -0700 Subject: [PATCH] Update config-metricbeat.yml Not finished with it. --- playbook/linux/elastic/config-metricbeat.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/playbook/linux/elastic/config-metricbeat.yml b/playbook/linux/elastic/config-metricbeat.yml index d4e0400..90fed44 100644 --- a/playbook/linux/elastic/config-metricbeat.yml +++ b/playbook/linux/elastic/config-metricbeat.yml @@ -11,6 +11,22 @@ #- name: config where to send information + #- name: Remove builtin elasticsearch host config + # become: true + # replace: + #dest: /etc/metricbeat/metricbeat.yml + #regexp: '^hosts: ["localhost:9200"]' + #replace: '#hosts: ["localhost:9200"]' + +- name: define elasticsearch host + become: true + lineinfile: + path: /etc/metricbeat/metricbeat.yml + regex: '^hosts: ["localhost:9200"]' + insertafter: 'hosts: ["localhost:9200"]' + line: 'hosts: ["dm-nagios.local:9200"]' + + - name: systemd - daemon reload become: true systemd: