---

- name: "Ensure that evoadmin_contact_email is defined"
  fail:
    msg: Please configure var evoadmin_contact_email
  when: evoadmin_contact_email is none or evoadmin_contact_email | length == 0

- include: packages.yml

- include: user.yml

- include: config.yml

- include: ssl.yml

- include: web.yml

- include: ftp.yml

- name: enable evoadmin-web link in default site index
  blockinfile:
    dest: /var/www/index.html
    marker: "<!-- {mark} evoadmin-web section -->"
    block: |
      <li><a href="https://{{ evoadmin_host }}">Interface admin web (EvoAdmin-web)</a></li>
