Install and setup postgresql on debian family
This commit is contained in:
parent
f187153c0b
commit
91824b7002
19
playbooks/setup_database.yml
Normal file
19
playbooks/setup_database.yml
Normal 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
|
Loading…
Reference in New Issue
Block a user