Update install-metricbeat.yml

This commit is contained in:
James Tombleson 2019-04-19 16:15:04 -07:00
parent 8f63118ca2
commit b4f0af6963

View File

@ -13,7 +13,32 @@
apt:
deb: /tmp/metricbeat.deb
- name: enable modules
# - name: enable modules
- name: define kibana host:
become: true
lineinfile:
path: /etc/metricbeat/metricbeat.yml
regex: '^host: "localhost:5601"'
insertafter: '#host: "localhost:5601"'
line: 'host: '
- name: config where to send information
- name: systemd - daemon reload
become: true
systemd:
daemon_reload: yes
- name: Enable service on system startup
become: true
systemd:
name: metricbeat
enabed: yes
- name: systemd - restart Metricbeat
become: true
systemd:
name: metricbeat
state: restarted