Fix the files permissions.

This commit is contained in:
Andrea Dell'Amico 2022-11-04 15:37:57 +01:00
parent 91414e6ac2
commit f053ca5be7
Signed by: andrea.dellamico
GPG Key ID: 147ABE6CEB9E20FF
1 changed files with 17 additions and 1 deletions

View File

@ -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