From c3ae64ee743febd8df54eb8486ee30e75f48b8b5 Mon Sep 17 00:00:00 2001 From: Hinrikus Wolf <hinrikus@fsmpi.rwth-aachen.de> Date: Fri, 3 Nov 2017 23:22:39 +0100 Subject: [PATCH] update postgres version for the configs --- zabbix-frontend/tasks/main.yml | 4 ++-- zabbix-server/tasks/main.yml | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/zabbix-frontend/tasks/main.yml b/zabbix-frontend/tasks/main.yml index e495428..d518ae0 100644 --- a/zabbix-frontend/tasks/main.yml +++ b/zabbix-frontend/tasks/main.yml @@ -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 }}" diff --git a/zabbix-server/tasks/main.yml b/zabbix-server/tasks/main.yml index 7be21c4..5ad75e9 100644 --- a/zabbix-server/tasks/main.yml +++ b/zabbix-server/tasks/main.yml @@ -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 }}" -- GitLab