|
@@ -1,8 +1,3 @@
|
1
|
|
-- name: Install Postgres
|
2
|
|
- apt: pkg=postgresql state=present
|
3
|
|
- tags:
|
4
|
|
- - dependencies
|
5
|
|
-
|
6
|
1
|
- name: Install Postfix and related packages
|
7
|
2
|
apt: pkg={{ item }} state=installed
|
8
|
3
|
with_items:
|
|
@@ -16,12 +11,6 @@
|
16
|
11
|
tags:
|
17
|
12
|
- dependencies
|
18
|
13
|
|
19
|
|
-- name: Set password for PostgreSQL admin user
|
20
|
|
- become: true
|
21
|
|
- become_user: postgres
|
22
|
|
- postgresql_user: name={{ db_admin_username }} password={{ db_admin_password }} encrypted=yes
|
23
|
|
- notify: import sql postfix
|
24
|
|
-
|
25
|
14
|
- name: Create database user for mail server
|
26
|
15
|
postgresql_user: login_host=localhost login_user={{ db_admin_username }} login_password="{{ db_admin_password }}" name={{ mail_db_username }} password="{{ mail_db_password }}" encrypted=yes state=present
|
27
|
16
|
notify: import sql postfix
|