--- - block: - name: Create the orientdb user user: name={{ orientdb_user }} home={{ orientdb_home_prefix }}/{{ orientdb_user }} createhome=yes shell=/bin/bash # - name: Get the orientdb distribution # get_url: url={{ orientdb_binary_distribution_url }} dest=/srv/{{ orientdb_tar_file }} validate_certs=False - name: Unpack the orientdb distribution become: True become_user: '{{ orientdb_user }}' unarchive: src={{ orientdb_binary_distribution_url }} dest={{ orientdb_home_prefix }}/{{ orientdb_user }} copy=no args: creates: '{{ orientdb_home_prefix }}/{{ orientdb_user }}/{{ orientdb_dir }}-{{ orientdb_version }}' - name: Link to the latest version become: True become_user: '{{ orientdb_user }}' file: src={{ orientdb_dir }}-{{ orientdb_version }} dest={{ orientdb_home_prefix }}/{{ orientdb_user }}/{{ orientdb_dir }} state=link - name: Install the orientdb startup script template: src=orientdb.init.j2 dest=/etc/init.d/orientdb owner=root group=root mode=0755 - name: Create a orientdb log directory out of the distribution directory file: /var/log/orientdb state=directory owner={{ orientdb_user }} group={{ orientdb_user }} mode=0755 - name: Install the orientdb configuration files become: True become_user: '{{ orientdb_user }}' template: src={{ item }}.j2 dest={{ orientdb_home_prefix }}/{{ orientdb_user }}/{{ orientdb_dir }}/{{ item }} mode=0444 tags: orientdb when: orientdb_install