James Tombleson
02c5a9c632
Install-Client and Install-Server are now valid. They will install what is needed per the hosts file. Computers in Linux will get client and computers in Elastic will get server.
26 lines
563 B
YAML
26 lines
563 B
YAML
---
|
|
- name: define kibana host
|
|
become: true
|
|
lineinfile:
|
|
path: /etc/heartbeat/heartbeat.yml
|
|
regex: '^host: "dm-nagios.local:5601"'
|
|
insertafter: '#host: "localhost:5601"'
|
|
line: 'host: "dm-nagios.local:5601"'
|
|
|
|
- name: systemd - daemon reload
|
|
become: true
|
|
systemd:
|
|
daemon_reload: yes
|
|
|
|
- name: system - enable on startup
|
|
become: true
|
|
systemd:
|
|
name: heartbeat-elastic
|
|
enabled: yes
|
|
|
|
- name: systemd - restart heartbeat
|
|
become: true
|
|
systemd:
|
|
name: heartbeat-elastic
|
|
state: restarted
|