allow vars files to ship a default unix socket dir mode
This commit is contained in:
parent
1842b7d65e
commit
4569217a84
|
@ -13,7 +13,7 @@ postgresql_group: postgres
|
||||||
postgresql_unix_socket_directories:
|
postgresql_unix_socket_directories:
|
||||||
- /var/run/postgresql
|
- /var/run/postgresql
|
||||||
|
|
||||||
postgresql_unix_socket_directories_mode: '02755'
|
# postgresql_unix_socket_directories_mode: '02775'
|
||||||
|
|
||||||
postgresql_service_state: started
|
postgresql_service_state: started
|
||||||
postgresql_service_enabled: true
|
postgresql_service_enabled: true
|
||||||
|
|
|
@ -24,5 +24,7 @@
|
||||||
state: directory
|
state: directory
|
||||||
owner: "{{ postgresql_user }}"
|
owner: "{{ postgresql_user }}"
|
||||||
group: "{{ postgresql_group }}"
|
group: "{{ postgresql_group }}"
|
||||||
mode: "{{ postgresql_unix_socket_directories_mode }}"
|
mode: "{{ postgresql_unix_socket_directories_mode
|
||||||
|
|default(__postgresql_unix_socket_directories_mode
|
||||||
|
|default('02775')) }}"
|
||||||
with_items: "{{ postgresql_unix_socket_directories }}"
|
with_items: "{{ postgresql_unix_socket_directories }}"
|
||||||
|
|
|
@ -9,5 +9,6 @@ __postgresql_packages:
|
||||||
- postgresql-server
|
- postgresql-server
|
||||||
- postgresql-contrib
|
- postgresql-contrib
|
||||||
- postgresql-libs
|
- postgresql-libs
|
||||||
|
__postgresql_unix_socket_directories_mode: '0755'
|
||||||
# Fedora 31 containers only have python3 by default
|
# Fedora 31 containers only have python3 by default
|
||||||
postgresql_python_library: python3-psycopg2
|
postgresql_python_library: python3-psycopg2
|
||||||
|
|
Loading…
Reference in New Issue