Skip to content
Snippets Groups Projects
Commit c3ae64ee authored by Hinrikus Wolf's avatar Hinrikus Wolf
Browse files

update postgres version for the configs

parent f4b6799b
No related branches found
No related tags found
No related merge requests found
...@@ -82,7 +82,7 @@ ...@@ -82,7 +82,7 @@
- zabbix - zabbix
- name: ensure the database server listens on the external interface - 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: notify:
- restart postgres - restart postgres
delegate_to: "{{ zabbix_db_host }}" delegate_to: "{{ zabbix_db_host }}"
...@@ -91,7 +91,7 @@ ...@@ -91,7 +91,7 @@
- zabbix - zabbix
- name: ensure the database server allows connections from the server - 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: notify:
- restart postgres - restart postgres
delegate_to: "{{ zabbix_db_host }}" delegate_to: "{{ zabbix_db_host }}"
......
...@@ -71,7 +71,7 @@ ...@@ -71,7 +71,7 @@
- zabbix - zabbix
- name: ensure the database server listens on the external interface - 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: notify:
- restart postgres - restart postgres
delegate_to: "{{ zabbix_db_host }}" delegate_to: "{{ zabbix_db_host }}"
...@@ -80,7 +80,7 @@ ...@@ -80,7 +80,7 @@
- zabbix - zabbix
- name: ensure the database server allows connections from the server - 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: notify:
- restart postgres - restart postgres
delegate_to: "{{ zabbix_db_host }}" delegate_to: "{{ zabbix_db_host }}"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment