124 lines
6.5 KiB
YAML
124 lines
6.5 KiB
YAML
---
|
|
- hosts: social
|
|
vars:
|
|
git_clone:
|
|
- { dest: "/home/repositories/pleroma", repo: "https://git.pleroma.social/pleroma/pleroma.git", branch: "develop" }
|
|
# - { dest: "{{ inspircd.paths.build }}", repo: "https://github.com/inspircd/inspircd.git", branch: "insp3" }
|
|
file:
|
|
- { path: '/etc/murmur', owner: 'root', group: 'root', mode: '600', state: directory }
|
|
# - { path: '{{ inspircd.paths.build }}/.configure', owner: 'root', group: 'root', mode: '600', state: directory }
|
|
# - { path: '{{ inspircd.paths.config }}/conf', owner: 'nobody', group: 'nogroup', mode: '600', state: directory }
|
|
apt:
|
|
sign_keys:
|
|
- "https://packages.erlang-solutions.com/ubuntu/erlang_solutions.asc"
|
|
packages:
|
|
- { package: "git", state: present }
|
|
- { package: "gcc", state: present }
|
|
- { package: "build-essential", state: present }
|
|
# - { package: "musl-dev", state: present }
|
|
# Pleroma (Elixir)
|
|
- { package: "libncurses6", state: present }
|
|
- { package: "postgresql-client", state: present }
|
|
- { package: "elixir", state: present }
|
|
- { package: "erlang-dev", state: present }
|
|
- { package: "erlang-parsetools", state: present }
|
|
- { package: "erlang-eldap", state: present }
|
|
- { package: "erlang-xmerl", state: present }
|
|
# Mumble
|
|
- { package: "libqt5sql5-psql", state: present }
|
|
- { package: "mumble-server", state: present }
|
|
- { package: "xz-utils", state: present }
|
|
- { package: "libmariadbclient-dev", state: present }
|
|
# InspIRCd
|
|
# - { package: "libpq-dev", state: present }
|
|
systemd:
|
|
services:
|
|
- { name: "pleroma", enabled: true, action: restarted }
|
|
- { name: "murmur", enabled: true, action: restarted }
|
|
- { name: "mumble-server", action: stopped }
|
|
# - { name: "inspircd", enabled: true, action: restarted }
|
|
murmur:
|
|
configpath: "{{ global.social.murmur.configpath }}"
|
|
name: "RedXen Community Mumble [High Bandwidth, User channels, 24/7]"
|
|
username: "root"
|
|
defaultchan: 1
|
|
listen:
|
|
host: "{{ ansible_ens10.ipv4.address }} ::1"
|
|
port: "{{ global.social.murmur.port }}"
|
|
database:
|
|
host: "{{ global.backend.postgres.host }}"
|
|
port: "{{ global.backend.postgres.port }}"
|
|
driver: "QPSQL"
|
|
dbname: "murmur"
|
|
username: "murmur"
|
|
password: "{{ vault_postgres.dbpass['murmur']|default() }}"
|
|
register:
|
|
host: "redxen.eu"
|
|
url: "redxen.eu"
|
|
password: "{{ vault_murmur.registerpass|default() }}"
|
|
motd: |
|
|
<center><br />
|
|
<h1>RedXen Community</h1><br />
|
|
<a href="https://redxen.eu">[ Homepage ]</a> <a href="https://t.me/rxtelegram">[ Telegram ]</a> <a href="https://git.redxen.eu">[ Git ]</a> <a href="https://paypal.me/caskdrx">[ Support us! ]</a> <a title="(redxen.eu:6697 TLS)" href="ircs://redxen.eu:6697/">[ IRC ]</a><br />
|
|
Enjoy your stay!<br />
|
|
Have a group that you want to represent or a question? Contact me at caskd@gmx.de<br />
|
|
</center>
|
|
pleroma:
|
|
root: "/etc/pleroma"
|
|
data: "/var/lib/pleroma"
|
|
listen:
|
|
domain: "{{ global.social.pleroma.listen.domain }}"
|
|
port: "{{ global.social.pleroma.listen.port }}"
|
|
instance:
|
|
name: "RedXen Fedi"
|
|
email:
|
|
admin: "caskd@420blaze.it"
|
|
notify: "fedi@redxen.eu"
|
|
description: "The social center for the fediverse"
|
|
federating: "true"
|
|
invites: "true"
|
|
registrations: "false"
|
|
frontend:
|
|
theme: "redxen"
|
|
logo: "/static/logo.png"
|
|
logomask: "false"
|
|
bg: "/static/background.jpg"
|
|
media_proxy: "true"
|
|
database_configurable: "false"
|
|
imports:
|
|
- "/etc/pleroma/secret.exs"
|
|
- "/etc/pleroma/mrf.exs"
|
|
# inspircd:
|
|
# server:
|
|
# name: "redxen.eu"
|
|
# description: "RedXen IRC Community"
|
|
# network: "RedXen"
|
|
# bind:
|
|
# - { address: "", port: 6667, tls: false, type: "clients" }
|
|
# - { address: "", port: 6697, tls: true, type: "clients" }
|
|
# #- { address: "", port: 7000, tls: false, type: "servers" }
|
|
# #- { address: "", port: 7001, tls: true, type: "servers" }
|
|
# paths:
|
|
# config: '/etc/inspircd'
|
|
# build: '/home/repositories/inspircd'
|
|
# permchannels:
|
|
# - { channel: "redxen", topic: "Welcome to RedXen IRC | https://redxen.eu", modes: "+nt *!*@*!*" }
|
|
# - { channel: "support", topic: "Have patience when asking, it can take some time until someone answers your question", modes: "+nt *!*@*!*" }
|
|
vault:
|
|
roles:
|
|
- "murmur"
|
|
- "postgresql"
|
|
#- "inspircd"
|
|
mounts:
|
|
- { uuid: '01ce4924-7200-41bd-ba0e-b52ec9f58a00', dest: "{{ pleroma.data }}", state: 'mounted', fstype: "xfs" }
|
|
roles:
|
|
- mounts
|
|
- vault
|
|
- git-clone
|
|
- apt
|
|
- file
|
|
- murmur
|
|
- pleroma
|
|
# - inspircd
|
|
- systemd
|