diff --git a/tasks/main.yml b/tasks/main.yml index 729db6c..9e514f9 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -7,7 +7,12 @@ get_url: url={{ orientdb_binary_distribution_url }} dest={{ orientdb_base_dir }}/{{ orientdb_tar_file }} validate_certs=no - name: Unpack the orientdb distribution - unarchive: src={{ orientdb_base_dir }}/{{ orientdb_tar_file }} dest={{ orientdb_base_dir }} copy=no + unarchive: + src: '{{ orientdb_base_dir }}/{{ orientdb_tar_file }}' + dest: '{{ orientdb_base_dir }}' + copy: no + owner: root + group: root args: creates: '{{ orientdb_home_prefix }}/{{ orientdb_user }}/{{ orientdb_dir }}-{{ orientdb_version }}' @@ -93,6 +98,17 @@ notify: Restart orientdb tags: [ 'orientdb', 'orientdb_config' ] + - name: Set the permissions of some configuration files + ansible.builtin.file: + dest: '{{ orientdb_install_dir }}/config/{{ item }}' + owner: '{{ orientdb_user }}' + group: '{{ orientdb_user }}' + mode: '0640' + loop: + - custom-sql-functions.json + notify: Restart orientdb + tags: [ 'orientdb', 'orientdb_config' ] + - name: Install the nagios nrpe configuration template: src=orientdb-nrpe.cfg.j2 dest={{ nrpe_include_dir }}/orientdb-nrpe.cfg owner=root group=root mode=0444 notify: Reload NRPE server