18 lines
342 B
YAML
18 lines
342 B
YAML
|
#!/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
|