add postgresql_unix_socket_directories_mode option to change the mode to the unix socket directories (which causes idempotence problemes on RedHat-7)

This commit is contained in:
Stefan Jakobs 2019-12-04 09:37:03 +01:00
parent fa3c639b78
commit 1842b7d65e
2 changed files with 3 additions and 1 deletions

View File

@ -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

View File

@ -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 }}"