Skip to content
Pleroma Ansible roles
Shell
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
nginx
pleroma-otp
postgresql
.hgignore
README.md

README.md

Pleroma Ansible Roles

This project is a collection of Ansible roles designed to install one or more Pleroma instances behind an Nginx reverse proxy.

Example Playbook

The following example configures two Pleroma instances on one host and uses an Nginx reverse proxy to route based on domain name. The second site is optional.

- hosts: pleroma
  roles:
    - role: pleroma
      pleroma_user: "pleroma_example"
      pleroma_link_host: "example.social"
      pleroma_port: 4000
      pleroma_signup_open: "true"

- hosts: pleroma
  roles:
    - role: pleroma
      pleroma_user: "pleroma_test"
      pleroma_link_host: "test.social"
      pleroma_port: 4001
      pleroma_signup_open: "true"

Example Ansible Vars

The following variables would go into Ansible group_vars, for example, and connects to an AWS RDS PostgreSQL database.

nginx_conf_src:    "roles/pleroma/templates/pleroma.nginx.conf.j2"
nginx_enable_ssl:  Yes
nginx_server_name: "{{pleroma_link_host}}"

pleroma_link_scheme: "https"
pleroma_db_host: "pleroma.123123.us-east-1.rds.amazonaws.com"
pleroma_db_passwd: "pleDbPass123"
pleroma_db_superpass: "dbpass123"
pleroma_secret_key: "secret123"
You can’t perform that action at this time.