nixos-servers/legacy/projects/thecloud/ansible/roles/postgresql/tasks/main.yml

16 lines
381 B
YAML
Raw Normal View History

- name: Open postgres port
ini_file:
path: /etc/postgresql/15/main/postgresql.conf
section: null
option: listen_addresses
value: "'*'"
notify: restart postgres
- name: Change data directory
ini_file:
path: /etc/postgresql/15/main/postgresql.conf
section: null
option: data_directory
value: "'/mnt/data/postgresql'"
notify: restart postgres