ansible/roles/postgresql/tasks/main.yml
Salt 9488b4541e Add psql role
That was actually really easy
Love the default ident mode
2020-07-28 08:38:21 -05:00

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