- 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