Create the log directory on EL.

This commit is contained in:
Andrea Dell'Amico 2020-07-30 19:04:12 +02:00
parent 3689c3a828
commit bc9a0fefa3
1 changed files with 7 additions and 0 deletions

View File

@ -101,6 +101,13 @@
- name: Configuration of EL systems
block:
- name: Create the postgresql log directory
file: dest={{ psql_log_dir }} owner=postgres group=postgres mode='0750'
- name: Fix the SELinux rules for the postgresql log directory
shell: semanage fcontext -a -a -t postgresql_db_t "{{ psql_log_dir }}(/.*)?" && restorecon -vR {{ psql_log_dir }}
- name: Set some postgresql configuration parameters that require a db restart
become: True
become_user: postgres