From 517d48484c11d56580ad5680611d3949f7dc678e Mon Sep 17 00:00:00 2001 From: Andrea Dell'Amico Date: Tue, 21 Jul 2020 14:16:45 +0200 Subject: [PATCH] Use the firewalld module on CentOS only. --- tasks/configure-access.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/tasks/configure-access.yml b/tasks/configure-access.yml index f2871b2..c7403ef 100644 --- a/tasks/configure-access.yml +++ b/tasks/configure-access.yml @@ -4,6 +4,7 @@ when: - psql_listen_on_ext_int | bool - firewalld_enabled | bool + - ansible_distribution_file_variety == "RedHat" - name: Give access to the remote postgresql client lineinfile: name={{ psql_conf_dir }}/pg_hba.conf regexp="^host.* {{ item.0.name }} {{ item.0.user }} {{ item.1 }}.*$" line="host {{ item.0.name }} {{ item.0.user }} {{ item.1 }} md5"