diff --git a/defaults/main.yml b/defaults/main.yml index fa6a87f..0783996 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -13,6 +13,8 @@ postgresql_group: postgres postgresql_unix_socket_directories: - /var/run/postgresql +postgresql_unix_socket_directories_mode: '02755' + postgresql_service_state: started postgresql_service_enabled: true diff --git a/tasks/configure.yml b/tasks/configure.yml index 28504a5..bcbc0fb 100644 --- a/tasks/configure.yml +++ b/tasks/configure.yml @@ -24,5 +24,5 @@ state: directory owner: "{{ postgresql_user }}" group: "{{ postgresql_group }}" - mode: 02775 + mode: "{{ postgresql_unix_socket_directories_mode }}" with_items: "{{ postgresql_unix_socket_directories }}"