---

- name: Example proxy for Kibana with Nginx (with SSL)
  template:
    src: nginx_proxy_kibana_ssl.j2
    dest: /etc/nginx/sites-available/kibana_ssl.conf
    force: no

- name: Example proxy for Kibana with Nginx (without SSL)
  template:
    src: nginx_proxy_kibana_nossl.j2
    dest: /etc/nginx/sites-available/kibana_nossl.conf
    force: no

# - name: Kibana host in Nginx is enabled
#   file:
#     src: /etc/nginx/sites-available/kibana.conf
#     dest: /etc/nginx/sites-enabled/kibana.conf
#     state: link
#   notify: reload nginx
