- name: install logstash
  apt:
    name: logstash
    state: present

- name: configure logstash 
  template: src=logstash.yml.j2 dest=/etc/logstash/conf.d/logstash.yml

- name: set logstash pipeline
  template: src=logstash.conf dest=/etc/logstash/conf.d/logstash.conf

- name: start logstash
  systemd:
    name: logstash
    state: started

- name: install logstash
  apt:
    name: logstash
    state: present

- name: configure logstash 
  template: src=logstash.yml.j2 dest=/etc/logstash/conf.d/logstash.yml

- name: set logstash pipeline
  template: src=logstash.conf dest=/etc/logstash/conf.d/logstash.conf

- name: configure logstash jvm
  template: src=jvm.options dest=/etc/logstash/jvm.options

- name: start logstash
  systemd:
    name: logstash
    state: started

Add installation of jvm options file for logstash
Add installation of jvm options file for logstash
