courseworkrep/roles/postgresql/tasks/open_firewall.yml
2024-12-08 22:11:48 +03:00

13 lines
219 B
YAML

- name: Open PostgreSQL port in firewall
firewalld:
port: 5432/tcp
permanent: true
state: enabled
become: true
- name: Reload firewalld
systemd:
name: firewalld
state: reloaded
become: true