courseworkrep/roles/postgresql/tasks/open_firewall.yml
2024-11-13 23:18:44 +03:00

11 lines
216 B
YAML

- name: Open PostgreSQL port in firewall
firewalld:
port: 5432/tcp
permanent: true
state: enabled
become: true
- name: Reload firewall using command
command: firewall-cmd --reload
become: true