|
@@ -25,6 +25,25 @@
|
25
|
25
|
group=root
|
26
|
26
|
notify: restart apache
|
27
|
27
|
|
|
28
|
+- name: Add custom postgres user
|
|
29
|
+ postgresql_user:
|
|
30
|
+ login_host=localhost
|
|
31
|
+ login_user={{ db_admin_username }}
|
|
32
|
+ login_password="{{ db_admin_password }}"
|
|
33
|
+ name={{ custom_db_username }}
|
|
34
|
+ password="{{ custom_db_password }}"
|
|
35
|
+ encrypted=yes
|
|
36
|
+ state=present
|
|
37
|
+
|
|
38
|
+- name: Create custom database
|
|
39
|
+ postgresql_db:
|
|
40
|
+ login_host=localhost
|
|
41
|
+ login_user={{ db_admin_username }}
|
|
42
|
+ login_password="{{ db_admin_password }}"
|
|
43
|
+ name={{ custom_db_database }}
|
|
44
|
+ state=present
|
|
45
|
+ owner={{ custom_db_username }}
|
|
46
|
+
|
28
|
47
|
- name: Create an example blog index page
|
29
|
48
|
template:
|
30
|
49
|
src=var_www_blog_index.j2
|