author | Luke Hoersten <luke@hoersten.org> |
Mon, 05 Sep 2022 11:14:48 -0500 | |
changeset 186 | c48761176ede |
parent 128 | b1cab99990c6 |
permissions | -rw-r--r-- |
70 | 1 |
# Pleroma Ansible Roles |
2 |
||
128
b1cab99990c6
Added canonical link to readme.
Luke Hoersten <luke@hoersten.org>
parents:
70
diff
changeset
|
3 |
https://src.nth.io/ansible-roles/file |
b1cab99990c6
Added canonical link to readme.
Luke Hoersten <luke@hoersten.org>
parents:
70
diff
changeset
|
4 |
|
70 | 5 |
This project is a collection of [Ansible](http://ansible.com) roles designed to install one or |
6 |
more [Pleroma](https://pleroma.social) instances behind an [Nginx](http://nginx.org) reverse proxy. |
|
7 |
||
8 |
## Example Playbook |
|
9 |
||
10 |
The following example configures two Pleroma instances on one host and uses an Nginx reverse proxy to route based on |
|
11 |
domain name. The second site is optional. |
|
12 |
||
13 |
```yaml |
|
14 |
- hosts: pleroma |
|
15 |
roles: |
|
16 |
- role: pleroma |
|
17 |
pleroma_user: "pleroma_example" |
|
18 |
pleroma_link_host: "example.social" |
|
19 |
pleroma_port: 4000 |
|
20 |
pleroma_signup_open: "true" |
|
21 |
||
22 |
- hosts: pleroma |
|
23 |
roles: |
|
24 |
- role: pleroma |
|
25 |
pleroma_user: "pleroma_test" |
|
26 |
pleroma_link_host: "test.social" |
|
27 |
pleroma_port: 4001 |
|
28 |
pleroma_signup_open: "true" |
|
29 |
``` |
|
30 |
||
31 |
## Example Ansible Vars |
|
32 |
||
33 |
The following variables would go into Ansible `group_vars`, for example, and connects to an AWS RDS PostgreSQL database. |
|
34 |
||
35 |
```yaml |
|
36 |
nginx_conf_src: "roles/pleroma/templates/pleroma.nginx.conf.j2" |
|
37 |
nginx_enable_ssl: Yes |
|
38 |
nginx_server_name: "{{pleroma_link_host}}" |
|
39 |
||
40 |
pleroma_link_scheme: "https" |
|
41 |
pleroma_db_host: "pleroma.123123.us-east-1.rds.amazonaws.com" |
|
42 |
pleroma_db_passwd: "pleDbPass123" |
|
43 |
pleroma_db_superpass: "dbpass123" |
|
44 |
pleroma_secret_key: "secret123" |
|
45 |
``` |