---
- name: Intall monitorings plugins
  apt:
    name: monitoring-plugins
    state: present

- include_role:
    name: evolix/remount-usr

- name: Create Nagios plugins dir
  file:
    path: /usr/local/lib/nagios/plugins
    state: directory

- name: Copy Tomcat instance check
  template:
    src: check_tomcat_instance.sh.j2
    dest: /usr/local/lib/nagios/plugins/check_tomcat_instance.sh
    mode: "0755"
