Ansible/playbook/linux/elastic/config-metricbeat.yml
James Tombleson 0b96124696 Elastic configs for windows hosts is in progress
I am able to deploy metricbeat now to the windows hosts.  Looking at heartbeat again though.
2019-04-24 14:40:05 -07:00

27 lines
527 B
YAML

# - name: enable modules
- name: enable system module
become: true
shell: metricbeat modules enable system
#- name: start metricbeat service
# become: true
#shell: metricbeat service metricbeat start
- name: systemd - daemon reload
become: true
systemd:
daemon_reload: yes
- name: Enable service on system startup
become: true
systemd:
name: metricbeat
enabled: yes
- name: systemd - restart Metricbeat
become: true
systemd:
name: metricbeat
state: restarted