ansible/roles/postgresql/tasks/main.yml
2020-07-28 08:46:45 -05:00

19 lines
373 B
YAML

#!/usr/bin/ansible-playbook
# vim:ft=ansible:
---
- name: Set up PostgreSQL
block:
- name: Install PostgreSQL
apt:
name:
- libpq-dev
- postgresql
- postgresql-contrib
- python3-psycopg2
- name: Start PostgreSQL
systemd:
name: postgresql
enabled: yes
state: started
become: yes