---
- include_role:
    name: evolix/remount-usr
  when: evocheck_bin_dir is search ("/usr")
  tags:
    - evocheck

- name: Scripts dir is present
  file:
    path: "{{ evocheck_bin_dir }}"
    state: directory
    owner: root
    group: root
    mode: "0700"
  tags:
    - evocheck

- name: Copy evocheck.sh
  copy:
    src: evocheck.sh
    dest: "{{ evocheck_bin_dir }}/evocheck.sh"
    mode: "0700"
    owner: root
    force: yes
  tags:
    - evocheck

- name: Copy evocheck.cf
  copy:
    src: evocheck.cf
    dest: /etc/evocheck.cf
    force: no
  tags:
    - evocheck
