Merge pull request #109 from anxstj/unix_socket_dir_permissions
add postgresql_unix_socket_directories_mode option
This commit is contained in:
commit
8334e6bc4c
|
@ -13,6 +13,8 @@ postgresql_group: postgres
|
|||
postgresql_unix_socket_directories:
|
||||
- /var/run/postgresql
|
||||
|
||||
# postgresql_unix_socket_directories_mode: '02775'
|
||||
|
||||
postgresql_service_state: started
|
||||
postgresql_service_enabled: true
|
||||
|
||||
|
|
|
@ -24,5 +24,7 @@
|
|||
state: directory
|
||||
owner: "{{ postgresql_user }}"
|
||||
group: "{{ postgresql_group }}"
|
||||
mode: 02775
|
||||
mode: "{{ postgresql_unix_socket_directories_mode
|
||||
|default(__postgresql_unix_socket_directories_mode
|
||||
|default('02775')) }}"
|
||||
with_items: "{{ postgresql_unix_socket_directories }}"
|
||||
|
|
|
@ -9,5 +9,6 @@ __postgresql_packages:
|
|||
- postgresql-server
|
||||
- postgresql-contrib
|
||||
- postgresql-libs
|
||||
__postgresql_unix_socket_directories_mode: '0755'
|
||||
# Fedora 31 containers only have python3 by default
|
||||
postgresql_python_library: python3-psycopg2
|
||||
|
|
Loading…
Reference in New Issue