Skip to content

Commit

Permalink
Install Kibana on all logging vms (#957)
Browse files Browse the repository at this point in the history
  • Loading branch information
przemyslavic authored Mar 4, 2020
1 parent b951c90 commit 5038272
Showing 1 changed file with 0 additions and 13 deletions.
Original file line number Diff line number Diff line change
@@ -1,15 +1,6 @@
---
- include_tasks: "{{ ansible_os_family }}.yml"

- name: Replace with interface
replace:
path: /etc/kibana/kibana.yml
regexp: '^#elasticsearch.url: "http://localhost:9200"$'
replace: "elasticsearch.url: \"http://{{ hostvars[groups['kibana'][0]]['ansible_default_ipv4']['address'] }}:9200\""
backup: no
when:
- groups['kibana'][0] == inventory_hostname

- name: Update Kibana configuration file
template:
src: kibana.yml.j2
Expand All @@ -20,8 +11,6 @@
register: change_config

- include_tasks: setup-logging.yml
when:
- groups['kibana'][0] == inventory_hostname

- name: Restart Kibana service
systemd:
Expand All @@ -34,8 +23,6 @@
name: kibana
state: started
enabled: yes
when:
- groups['kibana'][0] == inventory_hostname

- name: Wait for kibana to start listening
wait_for:
Expand Down

0 comments on commit 5038272

Please sign in to comment.