README.md
changeset 70 2cfe2fb975a8
child 128 b1cab99990c6
equal deleted inserted replaced
69:be979818d483 70:2cfe2fb975a8
       
     1 # Pleroma Ansible Roles
       
     2 
       
     3 This project is a collection of [Ansible](http://ansible.com) roles designed to install one or
       
     4 more [Pleroma](https://pleroma.social) instances behind an [Nginx](http://nginx.org) reverse proxy.
       
     5 
       
     6 ## Example Playbook
       
     7 
       
     8 The following example configures two Pleroma instances on one host and uses an Nginx reverse proxy to route based on
       
     9 domain name. The second site is optional.
       
    10 
       
    11 ```yaml
       
    12 - hosts: pleroma
       
    13   roles:
       
    14     - role: pleroma
       
    15       pleroma_user: "pleroma_example"
       
    16       pleroma_link_host: "example.social"
       
    17       pleroma_port: 4000
       
    18       pleroma_signup_open: "true"
       
    19 
       
    20 - hosts: pleroma
       
    21   roles:
       
    22     - role: pleroma
       
    23       pleroma_user: "pleroma_test"
       
    24       pleroma_link_host: "test.social"
       
    25       pleroma_port: 4001
       
    26       pleroma_signup_open: "true"
       
    27 ```
       
    28 
       
    29 ## Example Ansible Vars
       
    30 
       
    31 The following variables would go into Ansible `group_vars`, for example, and connects to an AWS RDS PostgreSQL database.
       
    32 
       
    33 ```yaml
       
    34 nginx_conf_src:    "roles/pleroma/templates/pleroma.nginx.conf.j2"
       
    35 nginx_enable_ssl:  Yes
       
    36 nginx_server_name: "{{pleroma_link_host}}"
       
    37 
       
    38 pleroma_link_scheme: "https"
       
    39 pleroma_db_host: "pleroma.123123.us-east-1.rds.amazonaws.com"
       
    40 pleroma_db_passwd: "pleDbPass123"
       
    41 pleroma_db_superpass: "dbpass123"
       
    42 pleroma_secret_key: "secret123"
       
    43 ```