PR #109 follow-up: Set postgresql_unix_socket_directories_mode var in variables.yml.
This commit is contained in:
parent
8334e6bc4c
commit
aff541892a
|
@ -13,8 +13,6 @@ postgresql_group: postgres
|
||||||
postgresql_unix_socket_directories:
|
postgresql_unix_socket_directories:
|
||||||
- /var/run/postgresql
|
- /var/run/postgresql
|
||||||
|
|
||||||
# postgresql_unix_socket_directories_mode: '02775'
|
|
||||||
|
|
||||||
postgresql_service_state: started
|
postgresql_service_state: started
|
||||||
postgresql_service_enabled: true
|
postgresql_service_enabled: true
|
||||||
|
|
||||||
|
|
|
@ -24,7 +24,5 @@
|
||||||
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 }}"
|
||||||
|
|
|
@ -43,3 +43,9 @@
|
||||||
set_fact:
|
set_fact:
|
||||||
postgresql_config_path: "{{ __postgresql_config_path }}"
|
postgresql_config_path: "{{ __postgresql_config_path }}"
|
||||||
when: postgresql_config_path is not defined
|
when: postgresql_config_path is not defined
|
||||||
|
|
||||||
|
- name: Define postgresql_unix_socket_directories_mode.
|
||||||
|
set_fact:
|
||||||
|
postgresql_unix_socket_directories_mode: >-
|
||||||
|
{{ __postgresql_unix_socket_directories_mode | default('02775')) }}
|
||||||
|
when: postgresql_unix_socket_directories_mode is not defined
|
||||||
|
|
Loading…
Reference in New Issue