Use the firewalld module on CentOS only.
This commit is contained in:
parent
cc1a90b195
commit
517d48484c
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue