24 lines
1.0 KiB
YAML
24 lines
1.0 KiB
YAML
---
|
|
- name: ensure apt cache is up to date
|
|
apt: update_cache=yes
|
|
- name: ensure python-software-properties is installed
|
|
apt: pkg=python-software-properties
|
|
- name: ensure app apt dependencies are installed
|
|
apt: pkg=$item state=installed
|
|
with_items:
|
|
- git
|
|
- nginx
|
|
|
|
- name: ensure we have the specified logstash release
|
|
git: repo=https://github.com/elasticsearch/kibana.git dest=/var/www/kibana #update=yes
|
|
- name: ensure kibana nginx site is in place
|
|
template: src=../files/kibana/kibana.conf.j2 dest=/etc/nginx/sites-available/kibana mode=0755
|
|
- name: ensure kibana is secured with a password
|
|
template: src=../files/kibana/kibana.htpasswd.j2 dest=/etc/nginx/conf.d/kibana.htpasswd mode=0755
|
|
- name: ensure default Nginx site is not enabled
|
|
file: state=absent path=/etc/nginx/sites-enabled/default
|
|
- name: ensure kibana nginx site is enabled
|
|
file: state=link src=/etc/nginx/sites-available/kibana path=/etc/nginx/sites-enabled/kibana
|
|
- name: ensure nginx config is reloaded by restarting nginx
|
|
service: name=nginx state=restarted
|