diff --git a/tasks/postgresql-config.yml b/tasks/postgresql-config.yml index a2563a0..b677438 100644 --- a/tasks/postgresql-config.yml +++ b/tasks/postgresql-config.yml @@ -103,7 +103,7 @@ block: - name: Create the postgresql log directory - file: dest={{ psql_log_dir }} owner=postgres group=postgres mode='0750' + file: dest={{ psql_log_dir }} state=directory 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 }}