mirror of
https://gitea.0xace.cc/ansible-galaxy/postgresql.git
synced 2024-11-25 08:16:43 +00:00
20 lines
497 B
YAML
20 lines
497 B
YAML
|
- name: Create data directory
|
||
|
file:
|
||
|
path: "{{ postgresql_data_dir }}"
|
||
|
owner: "postgres"
|
||
|
group: "postgres"
|
||
|
state: directory
|
||
|
|
||
|
- name: Create override directory for systemd unit
|
||
|
file:
|
||
|
path: "{{ postgresql_system_override_dir }}"
|
||
|
state: directory
|
||
|
|
||
|
- name: Create override for data directory
|
||
|
copy:
|
||
|
dest: "{{ postgresql_system_override_dir }}/override.conf"
|
||
|
content: |
|
||
|
[Service]
|
||
|
Environment=PGDATA={{ postgresql_data_dir }}
|
||
|
notify: Restart PostgreSQL
|