jaywink.socialhome

Ansible角色 - Socialhome

使用Ansible部署Socialhome

该角色还将安装Apache2和LetsEncrypt SSL证书,并默认安装PostgreSQL数据库(可以禁用)。

要求

Ansible 2.0+

角色变量

完整列表请查看defaults/main.yml

以下是使用该角色所需的变量,且没有(合理的)默认值。

# 管理员名称
socialhome_admin_name:

# 管理员邮箱
socialhome_admin_mail:

# 数据库密码
socialhome_db_password: socialhome

# 如果希望通过注册过程创建帐户,请设置为true
socialhome_disable_registrations: true

# 实例所在的域
socialhome_domain: socialhome.local

# Django密钥
socialhome_secret_key:

# 邮箱
# 设置后端为“smtp”以发送smtp邮件 - 目前只支持一个
# 如果没有设置为“smtp”,邮件将仅在控制台打印
# 邮件默认使用TLS
socialhome_email_backend:
socialhome_email_host: localhost
socialhome_email_port: 587
socialhome_email_host_user:
socialhome_email_host_password:
socialhome_email_from: "[email protected]"

禁用Postgres数据库安装

要使用现有的postgresql数据库,请定义变量socialhome_db_install_postgres: false,这将跳过Postgres安装。

依赖项

依赖以下角色:

  • geerlingguy.nodejs
  • jaywink.letsencrypt # 如果没有禁用socialhome_https

如果不禁用HTTPS(你不应该禁用),则必须设置有效的ansible-letsencrypt变量,例如:

letsencrypt_email: [email protected]
letsencrypt_domain: example.com
letsencrypt_request_www: false
letsencrypt_force_renew: false

完整列表请参见这里

示例剧本

---
- hosts: myhost
  become: yes
  become_user: root

  vars:
    # 在此放置变量或在单独的文件中

  roles:
    - jaywink.letsencrypt
    - jaywink.socialhome

许可证

MIT

作者信息

Jason Robinson / https://jasonrobinson.me

关于项目

Socialhome federated social networking server.

安装
ansible-galaxy install jaywink.socialhome
许可证
mit
下载
81
拥有者
Pythonista and Djangonaut. Federated social web hacker. Author of Socialhome. Extinction Rebel.