---

- name: Evolix public repositry is installed
  include_role:
    name: evolix/apt
    tasks_from: evolix_public.yml
  tags:
    - evomaintenance

- name: Package is installed
  apt:
    name: evomaintenance
    allow_unauthenticated: yes
  tags:
    - evomaintenance

- name: Configuration is installed
  template:
    src: evomaintenance.j2
    dest: /etc/evomaintenance.cf
    owner: root
    group: root
    mode: "0600"
    force: "{{ evomaintenance_force_config | bool }}"
  tags:
    - evomaintenance
