Add psql role
That was actually really easy Love the default ident mode
This commit is contained in:
parent
b506fb91ab
commit
9488b4541e
2
roles/postgresql/meta/main.yml
Normal file
2
roles/postgresql/meta/main.yml
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
---
|
||||||
|
allow_duplicates: no
|
17
roles/postgresql/tasks/main.yml
Normal file
17
roles/postgresql/tasks/main.yml
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
#!/usr/bin/ansible-playbook
|
||||||
|
# vim:ft=ansible:
|
||||||
|
---
|
||||||
|
- name: Set up PostgreSQL
|
||||||
|
block:
|
||||||
|
- name: Install PostgreSQL
|
||||||
|
apt:
|
||||||
|
name:
|
||||||
|
- postgresql
|
||||||
|
- libpq-dev
|
||||||
|
- python3-psycopg2
|
||||||
|
- name: Start PostgreSQL
|
||||||
|
systemd:
|
||||||
|
name: postgresql
|
||||||
|
enabled: yes
|
||||||
|
state: started
|
||||||
|
become: yes
|
Loading…
Reference in New Issue
Block a user