Commit d9eb991e authored by viscapi's avatar viscapi
Browse files

Now using postgresql_pg_hba module instead of lineinfile to configure pg_hba.conf

parent 74650085
......@@ -7,13 +7,22 @@
line: 'listen_addresses = {{ ansible_fqdn }}'
backrefs: yes
backup: yes
- name: autorisation dans pg_hba.conf
lineinfile:
path: "{{ path_to_icat }}/pg_hba.conf"
insertbefore: '^# Allow replication connections from localhost'
line: 'host {{ database_name }} {{ database_user }} {{ irods_server }}/24 trust'
#backrefs: yes
backup: yes
postgresql_pg_hba:
dest: "{{ path_to_icat }}/pg_hba.conf"
databases: "{{ database_name }}"
users: "{{ database_user }}"
address: "{{ irods_server }}/24"
contype: host
method: trust
#- name: autorisation dans pg_hba.conf
# lineinfile:
# path: "{{ path_to_icat }}/pg_hba.conf"
# insertbefore: '^# Allow replication connections from localhost'
# line: 'host {{ database_name }} {{ database_user }} {{ irods_server }}/24 trust'
# #backrefs: yes
# backup: yes
...
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment