2019-04-25 15:25:52 -07:00
|
|
|
|
|
|
|
- name: testing elastic role
|
|
|
|
hosts: elastic
|
|
|
|
|
|
|
|
tasks:
|
2019-04-29 16:08:04 -07:00
|
|
|
- name: install/Update Java
|
|
|
|
become: true
|
|
|
|
import_role:
|
|
|
|
name: geerlingguy.java
|
|
|
|
|
|
|
|
- name: install elasticsearch
|
|
|
|
become: true
|
2019-04-25 15:25:52 -07:00
|
|
|
import_role:
|
|
|
|
name: elasticsearch
|
|
|
|
vars:
|
2019-04-26 12:35:26 -07:00
|
|
|
cluster_name: "loggin-dev"
|
|
|
|
ufw_http_port: true
|
|
|
|
ufw_transport_port: true
|
|
|
|
systemd_enabled: true
|
|
|
|
systemd_restart: true
|
2019-04-29 16:08:04 -07:00
|
|
|
node_name: "{{ ansible_hostname }}"
|
|
|
|
discovery_seed_hosts: "'127.0.0.1', '172.20.0.142', '192.168.0.173'"
|
|
|
|
cluster_initial_master_nodes: " '172.20.0.142', '192.168.0.173' "
|
2019-04-25 15:25:52 -07:00
|
|
|
|
2019-04-26 16:01:55 -07:00
|
|
|
- name: install kibana
|
2019-04-29 16:08:04 -07:00
|
|
|
become: true
|
2019-04-26 16:01:55 -07:00
|
|
|
import_role:
|
|
|
|
name: kibana
|
|
|
|
vars:
|
|
|
|
server_port: 5601
|
2019-04-29 16:08:04 -07:00
|
|
|
server_host: "{{ ansible_default_ipv4.address }}"
|
|
|
|
server_name: "{{ ansible_hostname }}"
|
|
|
|
elasticsearch_hosts: " 'http://localhost:9200', 'http://dm-nagios.local:9200', 'http://172.20.0.142:9200' "
|
2019-04-26 16:01:55 -07:00
|
|
|
|