Commit c3ae64ee authored by Hinrikus Wolf's avatar Hinrikus Wolf
Browse files

update postgres version for the configs

parent f4b6799b
......@@ -82,7 +82,7 @@
- zabbix
- name: ensure the database server listens on the external interface
replace: dest=/etc/postgresql/9.4/main/postgresql.conf regexp="#listen_addresses = 'localhost'" replace="listen_addresses = '*'"
replace: dest=/etc/postgresql/9.6/main/postgresql.conf regexp="#listen_addresses = 'localhost'" replace="listen_addresses = '*'"
notify:
- restart postgres
delegate_to: "{{ zabbix_db_host }}"
......@@ -91,7 +91,7 @@
- zabbix
- name: ensure the database server allows connections from the server
lineinfile: dest=/etc/postgresql/9.4/main/pg_hba.conf insertafter="host all all 127.0.0.1/32 md5" line="host {{ zabbix_db_name }} {{ zabbix_db_user }} {{ ansible_fqdn }} md5" state=present
lineinfile: dest=/etc/postgresql/9.6/main/pg_hba.conf insertafter="host all all 127.0.0.1/32 md5" line="host {{ zabbix_db_name }} {{ zabbix_db_user }} {{ ansible_fqdn }} md5" state=present
notify:
- restart postgres
delegate_to: "{{ zabbix_db_host }}"
......
......@@ -71,7 +71,7 @@
- zabbix
- name: ensure the database server listens on the external interface
replace: dest=/etc/postgresql/9.4/main/postgresql.conf regexp="#listen_addresses = 'localhost'" replace="listen_addresses = '*'"
replace: dest=/etc/postgresql/9.6/main/postgresql.conf regexp="#listen_addresses = 'localhost'" replace="listen_addresses = '*'"
notify:
- restart postgres
delegate_to: "{{ zabbix_db_host }}"
......@@ -80,7 +80,7 @@
- zabbix
- name: ensure the database server allows connections from the server
lineinfile: dest=/etc/postgresql/9.4/main/pg_hba.conf insertafter="host all all 127.0.0.1/32 md5" line="host {{ zabbix_db_name }} {{ zabbix_db_user }} {{ ansible_fqdn }} md5" state=present
lineinfile: dest=/etc/postgresql/9.6/main/pg_hba.conf insertafter="host all all 127.0.0.1/32 md5" line="host {{ zabbix_db_name }} {{ zabbix_db_user }} {{ ansible_fqdn }} md5" state=present
notify:
- restart postgres
delegate_to: "{{ zabbix_db_host }}"
......
Markdown is supported
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