courseworkrep/roles/postgresql/tasks/open_firewall.yml

11 lines
216 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
2024-11-13 20:18:44 +00:00
2024-11-10 21:17:33 +00:00
- name: Reload firewall using command
command: firewall-cmd --reload
become: true