Use the firewalld module on CentOS only.

This commit is contained in:
Andrea Dell'Amico 2020-07-21 14:16:45 +02:00
parent cc1a90b195
commit 517d48484c
1 changed files with 1 additions and 0 deletions

View File

@ -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"