Update config-metricbeat.yml

Not finished with it.
This commit is contained in:
James Tombleson 2019-04-22 15:32:56 -07:00
parent 02c5a9c632
commit 305708add3

View File

@ -11,6 +11,22 @@
#- name: config where to send information #- 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 - name: systemd - daemon reload
become: true become: true
systemd: systemd: