---
- name: Create orientdb user
  user: name={{orientdb_user}} password={{orientdb_user_password}}

- name: Create log directory
  file: path={{orientdb_log_dir}} state=directory owner={{orientdb_user}} group={{orientdb_user}}

- include: install.yml

- include: configure-RedHat.yml
  when: ansible_os_family == 'RedHat'

- include: configure-Debian.yml
  when: ansible_os_family == 'Debian'

---
- name: Prerequisites
  fail:
    msg: Versions 1.x of this role cannot handle OrientDB version > 2 installations.
  when: orientdb_version[:1] | int > 2

- name: Create orientdb user
  user: name={{orientdb_user}} password={{orientdb_user_password}}

- name: Create log directory
  file: path={{orientdb_log_dir}} state=directory owner={{orientdb_user}} group={{orientdb_user}}

- include: install.yml

- include: configure-RedHat.yml
  when: ansible_os_family == 'RedHat'

- include: configure-Debian.yml
  when: ansible_os_family == 'Debian'

Add a prerequisite check to tell users that role v1.x cannot handle OrientDB > 2.x installations
Add a prerequisite check to tell users that role v1.x cannot handle OrientDB > 2.x installations
