courseworkrep/roles/postgresql/tasks/open_firewall.yml

15 lines
260 B
YAML
Raw Normal View History

2024-11-10 21:17:33 +00:00
- name: Open PostgreSQL port in firewall
firewalld:
port: 5432/tcp
permanent: true
state: enabled
become: true
tags:
- firewall
- name: Reload firewall using command
command: firewall-cmd --reload
become: true
tags:
- firewall