vm-ansible/roles/postgresql/tasks/main.yaml

20 lines
343 B
YAML
Raw Normal View History

2022-01-08 21:53:39 +01:00
---
- name: "Install PostgreSQL via apt"
apt:
update_cache: yes
state: present
name:
- postgresql
- name: Enable and restart PostgreSQL daemon
service:
name: postgresql
state: restarted
enabled: yes
2022-02-05 20:00:55 +01:00
- name: Allow postgresql port via ufw
community.general.ufw:
rule: allow
port: 5432
proto: tcp