Install and setup postgresql on debian family

This commit is contained in:
Ibrahim Mkusa 2024-09-07 10:34:44 -04:00
parent f187153c0b
commit 91824b7002

View File

@ -0,0 +1,19 @@
---
- name: This playbook installs and setups postgresql
hosts: aws
become: true
tasks:
- name: install postgresql
apt:
name: postgresql
update_cache: true
- name: enable the postgresql service
service:
name: postgresql
enabled: true
- name: start the postgresql service
service:
name: postgresql
state: started