Add mastodon-postgresql role.

This commit is contained in:
staticsafe 2017-11-26 16:50:14 -05:00
parent 852b28f166
commit 5265db132c
2 changed files with 18 additions and 0 deletions

View File

@ -0,0 +1,17 @@
--
# This role installs the PostgreSQL server daemon and creates the mastodon
# database user
- name: Install PostgreSQL server and related packages
apt: name={{ item }} state=latest update_cache=yes
with_items:
- postgresql
- postgresql-contrib
- python-psycopg2
- name: Add Mastodon PostgreSQL database user
postgresql_user:
name: mastodon
role_attr_flags: CREATEDB
state: present
become: true
become_user: postgres

View File

@ -5,3 +5,4 @@
- common
- ruby
- mastodon-app
- mastodon-postgresql